bind: add completions for -m and -M

See https://github.com/fish-shell/fish-shell/issues/1663
This commit is contained in:
David Adam 2014-09-29 14:22:37 +08:00
parent f0d8d90ed1
commit 1c9aec4899

View file

@ -5,6 +5,8 @@ complete -c bind -s f -l function-names --description 'Print names of available
complete -c bind -s h -l help --description "Display help and exit"
complete -c bind -s k -l key --description 'Specify key name, not sequence'
complete -c bind -s K -l key-names --description 'Print names of available keys'
complete -c bind -s m -l mode --description 'Add to named bind mode'
complete -c bind -s M -l new-mode --description 'Change current bind mode to named mode'
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