mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 06:37:46 +00:00
new module comma and some updates (#704)
update: - cwdhist: openeditor changed from alt+e to alt+o - docker: pull, push add nerdctl insecure-registry support - docker: registry show use curl instead http get (may cause dns resolution problems) - git: status `table -n` changed to `table -i` new module: comma Similar to `pwd-module`, but supports completion and description through custom data formats - `,` or `*` need to be exported in order to use `,` directly - Directly execute `,` to create a new template file or edit an existing file - Custom tasks are written in `$env.comma` and can be nested - Generate completions based on the structure of `$env.comma` - You can use closure to customize completion - In `$env.commax.act` of default closure, you can receive parameters after the current position - In `$env.commax.cmp` , you can receive the parameter before the current position --------- Co-authored-by: nash <nash@iffy.me>
This commit is contained in:
parent
6f1c0dfef2
commit
fce44fbbfd
6 changed files with 318 additions and 28 deletions
|
@ -24,10 +24,8 @@ export def normalize-column-names [ ] {
|
|||
$t
|
||||
}
|
||||
|
||||
def --wrapped with-flag [...ns] {
|
||||
if ($in | is-empty) { [] } else {
|
||||
[$ns $in] | flatten
|
||||
}
|
||||
def --wrapped with-flag [...flag] {
|
||||
if ($in | is-empty) { [] } else { [...$flag $in] }
|
||||
}
|
||||
|
||||
export def `kcache flush` [] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue