added tab completions for choose

(cherry picked from commit ce6b122f7f)
This commit is contained in:
Bagohart 2022-07-11 13:48:25 +02:00 committed by David Adam
parent 9cdaf1ec72
commit e7e4d8415b
2 changed files with 16 additions and 0 deletions

View file

@ -8,6 +8,7 @@ This release of fish introduces the following small enhancements:
- ``history merge`` when in private mode is now an error, rather than wiping out other sessions' history (:issue:`9050`).
- The error message when launching a command that is built for the wrong architecture on macOS is more helpful (:issue:`9052`).
- Added completions for:
- ``choose`` (:issue:`9065`)
- ``expect`` (:issue:`9060`)
= ``navi`` (:issue:`9064`)
- ``qdbus`` (:issue:`9031`)

View file

@ -0,0 +1,15 @@
complete choose --no-files
# flags:
complete choose -s c -l character-wise -d "Choose fields by character number"
complete choose -s d -l debug -d "Activate debug mode"
complete choose -s x -l exclusive -d "Use exclusive ranges, similar to array indexing in many programming languages"
complete choose -x -s h -l help -d "Prints help information"
complete choose -s n -l non-greedy -d "Use non-greedy field separators"
complete choose -l one-indexed -d "Index from 1 instead of 0"
complete choose -s V -l version -d "Prints version information"
# options:
complete choose -x -s f -l field-separator -d "Specify field separator other than whitespace, using Rust `regex` syntax"
complete choose -r -s i -l input -d "Specify input file"
complete choose -x -s o -l output-field-separator -d "Specify output field separator"