Commit Graph

15 Commits

Author SHA1 Message Date
Eric Hodel
c93ce14fc9
Improved CDPATH (#644)
This updated `c` command supports:
* Changing to the previous directory with `c -`
* Changing to absolute directories
* Completion of CDPATH entries
* Completion of absolute paths
* Completion of children

When completing CDPATH entries the parent directory is shown to provide
context in case multiple CDPATH entries have the same child directory
names.

Fixes #244
2023-10-19 06:35:32 -05:00
Stefan Holderbach
6947014306
Replace use of $nothing with null (#621)
`$nothing` will be deprecated in nu 0.86

This accompanies
- https://github.com/nushell/nushell/pull/10478
2023-09-26 18:52:49 +02:00
baehyunsol
79fcd05525
use repeat instead of string multiplication (#612) 2023-09-21 13:20:49 +02:00
Stefan Holderbach
36a45f28a3
Move random/into decimal to random/into float (#606)
* Move `random-list decimal` to `random-list float`

Updates internally to `random float` published with `0.85`

* Update kubernetes wrapper to `into float`

* Update temp script to `into float`

* Update `nupass` to `random float`
2023-09-20 19:13:52 +02:00
Antoine Stevan
cfd7a7950b
add a typeof command (#597)
* add the `typeof` command

* add some tests
2023-09-10 08:13:04 -05:00
Maxim Uvarov
5ed3a961af
Update bar function (#589)
* fix indexing issue

* [bar] make default output without ansi codes

* [bar] use actual testing framework
2023-09-01 07:18:21 -05:00
Antoine Stevan
be47e43db6
rename date format to format date (#571) 2023-08-04 09:08:10 -05:00
Antoine Stevan
a61256da0e
use $env. instead of let-env (#543)
related to nushell/nushell#9574

Commands used
```nushell
sd --string-mode "let-env " '$env.' **/*
git rst before_v0.60/
```
2023-07-01 10:40:16 +02:00
Kenichi Kamiya
0ca38a46f5
Replace deprecated hash base64 with decode (#531)
Applied in https://github.com/nushell/nushell/issues/5861
2023-06-15 06:14:41 -05:00
Kenichi Kamiya
28c7e097db
Replace deprecated fetch with http get (#530)
Applied in https://github.com/nushell/nushell/pull/7796
2023-06-15 06:13:39 -05:00
Maxim Uvarov
b2fadc0ea8
the function to display bars of given percentage from given width (#478)
* function to display bars of given percentage from given width

* adding --progress, moving width to options

thanks @amtoine

* typos of ESL studnet

* added examples and tests

* feat(nano): add completions (#479)

* feat(nano): add completions

* feat(nano): add readme

* removed escape symbols from tests, fixed fraction indexing

* fixed tests

Fixed tests, although they need escape sequences, as the bar function has the ability to change the colors of both the background and foreground and uses the default color by default.

* Rename bar_fn.nu to bar.nu

---------

Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com>
2023-05-12 09:11:20 -05:00
Rick Cogley
f02f4dd0d0
Nupass par each threads 20230504 (#477)
* Update ReadMe.md

Added explanation of how to use new --threads switch to feed to the par-each loops

* Update nupass.nu

Added --threads flag to allow setting of same in par-each loops, for performance fine tuning
2023-05-04 08:00:38 -05:00
Rick Cogley
afba27f304
Nupass performance 20230502 (#474)
* Use par-each in main list builders

Using par-each on the main list builders for random words, symbols and numbers results in a significant performance gain

* Add benchmarking section

Explain how par-each really can improve performance
2023-05-02 06:39:33 -05:00
Rick Cogley
112d8b2f7e
Nupass refactor 20230501 (#473)
* Refactor nupass.nu

Major refactor for more flexibility

To allow number of words to be specified, one solution is to add random 
words, symbols, & numbers to lists, then operate on the lists.
You can combine lists with the ++ operator, then use shuffle on them,
as well as various other methods.

* Update ReadMe.md

Updated to match latest version, adding some new sample commands

Last version `nupass 4` meant "generate password with 3 words of length <=4".
This version `nupass 4` means "generate password with 4 words".
Length can be specified with `-l`, so: `nupass 4 -l 8` means "generate password with 4 words of length <=8".

* Update ReadMe.md

Screenshot showing new version's output
2023-05-01 06:10:19 -05:00
Mel Massadian
c47ccd42b8
refactor: (#418)
* refactor:  move in one commit

Eveything in modules should probably be changed to `exported` defs.
The idea is to move everything first to keep proper history.

* refactor: 📝 add modules readme (wip)

* refactor:  small move

* refactor: 📝 changed nestring, updated modules readme

* refactor: 📝 to document or not to document

* fix: 🐛 themes

replaced the template to use `main` and regenerated them
from lemnos themes.

* Revert "fix: 🐛 themes"

This reverts commit 4918d3633c.

* refactor:  introduce sourced

- Created a source `root` in which sourcable demos are stored.
  Some might get converted to modules later on.
- Moved some files to bin too.

* fix: 🐛 fehbg.nu

* fix: 🐛 modules/after.nu

* moved some other stuff around

---------

Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
2023-04-25 17:56:25 -05:00