mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-20 22:42:39 +08:00
correct 'bind' completions
--new-mode isn't even an option `bind` takes, and it -m for -M.
This commit is contained in:
parent
eb2d829bc5
commit
469a8880aa
@ -43,14 +43,16 @@ function __fish_bind_test2
|
||||
|
||||
end
|
||||
|
||||
complete -c bind -f
|
||||
complete -c bind -s a -l all -d 'Show unavailable key bindings/erase all bindings'
|
||||
complete -c bind -s e -l erase -d 'Erase mode'
|
||||
complete -c bind -s f -l function-names -d 'Print names of available functions'
|
||||
complete -c bind -s h -l help -d "Display help and exit"
|
||||
complete -c bind -s k -l key -d 'Specify key name, not sequence'
|
||||
complete -c bind -s K -l key-names -d 'Print names of available keys'
|
||||
complete -c bind -s m -l mode -d 'Add to named bind mode'
|
||||
complete -c bind -s M -l new-mode -d 'Change current bind mode to named mode'
|
||||
complete -c bind -s M -l mode -d 'Specify the bind mode that the bind is used in'
|
||||
complete -c bind -s m -l sets-mode -d 'Change current mode after bind is executed'
|
||||
complete -c bind -s L -l list-modes -d 'Display a list of defined bind modes'
|
||||
|
||||
complete -c bind -n __fish_bind_test1 -a '(bind --key-names)' -d 'Key name' -x
|
||||
complete -c bind -n __fish_bind_test2 -a '(bind --function-names)' -d 'Function name' -x
|
||||
|
Loading…
x
Reference in New Issue
Block a user