* Experimental multi-task runner support for `jx` (npm for example)
- Remove `nu-complete` export for debugging.
- Formatting `nu-complete just recipes`
* Use `jx` to override `j`.
Only for `just`, it only adds a prefix when completing, and does not break the original workflow
* `nu-complete just recipes` append empty string
When all the completions are `just xxx`, there is only `just` in the menu, press `C-w` to delete backwards to work.
* kgp takes `-o default` by default
move just to just/just.nu
* `gp` uses `git pull` instead of `git fetch` by default, and there is only one request when `push` is not needed
* add kgpw for `kubectl get pods --watch`
adjust `gm` to make it clearer
* remove just.nu
---------
Co-authored-by: agent <agent@nuc>
* nu-complete kube jsonpath
The behavior is correct, but the completion menu cannot be displayed
* jsonpath completion for list
* New nushell-style git.nu
Original renamed to git-classic.nu
See `git.md` for details
* rename git.md to README.md
* Move the helper function to the back
* revert power_kube ensure-cache
* A more precise description of `gp`
* description of behavior that both ahead and behind exist
* clean up redundant alias
git show can use gl <hash> instead (hash can be completed)
* add description of `gl`
* add description of gp, ga, gd's parameter
* typo: gpc to gcp
* description of `gp --override`
* rename git.nu to git-v2.nu and git_classic.nu to git.nu
* `git fetch` as fallback of `gp` and temporarily disable `gstat`
temporarily disable `gstat` in `power_git` because:
- `gstat` is not much faster than nushell's implementation of `git_status`
- Sometimes the information displayed is inaccurate, but `git_status` parses the output of `git`, which is more reliable
- No need to load additional plugins
---------
Co-authored-by: agent <agent@nuc>
Co-authored-by: nash <nash@iffy.me>
* 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>
* add the original kubectl command as description of abbreviation
* replace nu-complete kube pods, services, deployments with `res via name`
* kg support --jsonpath
* kgp, kgs, kgd support --jsonpath
* refactor kep, kdp, kgd, kdels
* kg support --selector
* kg support --wide
- remove kgpl
- kgp, kgd support --selector
* kg support --watch and rename wide to verbose
- remove kgpa (kg pod -A)
- remove kgpw (kg pod -w)
* add kind in output of `kg -v`
used with multiple types such as `kg pod,svc -v`
---------
Co-authored-by: agent <agent@nuc>
* improve kconf import
The order of fields loaded via `from yaml` is unstable, so use yq to
read it as json, and then load it by `from json`.
Aims to be `diff` friendly.
Remove the square brackets from the week field and use color to
distinguish it, taking up less space.
* kube_stat shows $ctx.NAME instead of complex combination of $ctx.AUTHINFO and $ctx.CLUSTER
- Improve the default theme of kube_stat.
- Clean up duplicate comments in `kubernetes.nu`.
* when power's DECORATOR mode is `power`, allows to dynamically change the background color
- components now needs to return two values in an array, the first value is the background color, and the second value is the original value.
- as an example, `atuin_stat` reveal its status with two different colors instead of showing or hiding
* allowing pass `config` when register or inject a component
The main difference between `config` and `theme` is: theme assumes you pass a color and will apply with `ansi -e {fg : $arg}`
And in most cases, you don't need to pass `config`
* added new function `power set`
time_segment allows format control via option `short`
* rename `nu-complete kube def` to `nu-complete kube kind`
- get all resources via `kubectl api-resources`
- enable cache
* use `from yaml` instead of `yq -o=json | from json` (for next version)
* nu-complete kube kind: add SHORTNAMES as description
* Fix the caching mechanism of `kube ctx` and `kube kind`
based on the number of file lines instead of modification time.
Because switching the context will change the content of the file, the time will be updated every time
* Added new command `kcache flush` to rebuild the cache.
Sometimes, such as manually editing the cluster address in the
configuration file, the number of lines has not changed, and the cache
does need to be refreshed
* use `path dirname` instead of `dirname`
* applying `ensure-cache-by-lines` in `kube_stat`
---------
Co-authored-by: agent <agent@nuc>
- fix regex matching
- . -> \.
- use $ ot match end of file name
- fix naming of variables (exte -> handlers; command -> maybe_handler)
- combine suffixes with common extractors
- in case of no match, use a proper error
* rename registry list to registry show
Extend its functionality, not just list tags, but also show catalog
and manifest, Depending on the number of parameters.
* date format by $theme.format
show day of the week
shortly time_segment
---------
Co-authored-by: agent <agent@nuc>
* 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
* 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
* 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
* add aliases from `modules/git/`
* remove `git` aliases from `modules/git/`
* move the `git_` tool commands to the alias file
This is the only place these commands are used.
* refactor
- new decorator type `|>` for head of left
- more convenient analysis
* try to add anlysis on component level
- get_component
- when there is only one component in left, '>>' takes precedence
- use `reduce` instead of `each & filter` (improved performance significantly)
* fix component level benchmark
* optimize git_stat
---------
Co-authored-by: nash <nash@iffy.me>
- added instructions for measurements
- change NU_POWER_MODE default to `power` (in fast mode, there is still a problem with hid
eable components on the left)
- tweaked atuin_stat theme
Co-authored-by: nash <nash@iffy.me>
- rename `default` to `power`($env.NU_POWER_MODE, avoid misleading)
- apply `ansi -e {fg: $arg}` to theme configuration of `register` and `inject`(consistent with how it is configured in NU_POWER_SCHEMA)
- added atuin_stat
Co-authored-by: agent <agent@nuc>
* 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>
The get-random-symbol function had a hard coded upper limit when using
"random integer". Switch to getting the length of the symbol string
automatically, so user does not have to physically count