diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-04-15 18:20:19 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-04-15 18:20:19 +0000 |
commit | 04a89199d02a3ee6c4b3d89a6c782bdb0a4f1bc8 (patch) | |
tree | 2215f99f95d55660fc939a029bf965c454d080b5 /Completion/Builtins/_bindkey | |
parent | 7a0415cfd70a02b2280d27556c6c54cef1c86e1a (diff) | |
download | zsh-04a89199d02a3ee6c4b3d89a6c782bdb0a4f1bc8.tar.gz zsh-04a89199d02a3ee6c4b3d89a6c782bdb0a4f1bc8.tar.xz zsh-04a89199d02a3ee6c4b3d89a6c782bdb0a4f1bc8.zip |
zsh-3.1.5-pws-12 zsh-3.1.5-pws-12
Diffstat (limited to 'Completion/Builtins/_bindkey')
-rw-r--r-- | Completion/Builtins/_bindkey | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Completion/Builtins/_bindkey b/Completion/Builtins/_bindkey index d3d019492..6fca200ba 100644 --- a/Completion/Builtins/_bindkey +++ b/Completion/Builtins/_bindkey @@ -1,7 +1,14 @@ #defcomp bindkey -if [[ "$words[2]" = -*[DAN]* || "$words[CURRENT-1] = -*M ]]; then +# Normally, this completes names of zle widgets, whether the builtin ones +# or ones defined by the user. Note that a - allows a wildcard before it, +# so h-b-s-b will complete to history-beginning-search-backward. You +# can alter this by removing the -M ... from the second compgen. +# +# Where appropriate, will complete keymaps instead of widgets. + +if [[ "$words[2]" = -*[DAN]* || "$words[CURRENT-1]" = -*M ]]; then compgen -s '$(bindkey -l)' else - compgen -b + compgen -b -M 'r:|-=* r:|=*' fi |