diff options
author | Oliver Kiddle <opk@zsh.org> | 2016-09-21 23:03:14 +0200 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2016-09-21 23:03:14 +0200 |
commit | 34d512a677fe64e3e9aa59f0ee9f19c3c8226ee1 (patch) | |
tree | 5b0de7c945c53ba8ccaaa74c5bea0e215f1c27f9 /Completion/Zsh | |
parent | e8720bbd8bbd57fae5588792c950e578110937ac (diff) | |
download | zsh-34d512a677fe64e3e9aa59f0ee9f19c3c8226ee1.tar.gz zsh-34d512a677fe64e3e9aa59f0ee9f19c3c8226ee1.tar.xz zsh-34d512a677fe64e3e9aa59f0ee9f19c3c8226ee1.zip |
39370: complete -w and -K options to zle following the widget name and numeric base to integer
Diffstat (limited to 'Completion/Zsh')
-rw-r--r-- | Completion/Zsh/Command/_typeset | 2 | ||||
-rw-r--r-- | Completion/Zsh/Command/_zle | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Completion/Zsh/Command/_typeset b/Completion/Zsh/Command/_typeset index 4e29c23e7..94f63cf7e 100644 --- a/Completion/Zsh/Command/_typeset +++ b/Completion/Zsh/Command/_typeset @@ -57,7 +57,7 @@ case ${service} in ;; integer) use="Hghilprtux" - allargs[i]='-i[specify arithmetic base for output]' \ + allargs[i]='-i+[specify arithmetic base for output]:: :_guard "[0-9]#" base' \ ;; readonly) use="${use/r/}" ;; local) use="${use/[fkz]/}" ;& diff --git a/Completion/Zsh/Command/_zle b/Completion/Zsh/Command/_zle index f189b8fd9..e01d0a943 100644 --- a/Completion/Zsh/Command/_zle +++ b/Completion/Zsh/Command/_zle @@ -45,6 +45,8 @@ case "$state[1]" in _arguments \ '(-N)-n[numeric prefix]:number:' \ '(-n)-N[reset numeric prefix]' \ + '-K[specify temporary keymap]:keymap:compadd -a keymaps' \ + '-w[set $WIDGET to reflect widget being called]' \ '(-)*:widget arguments: ' && ret=0 ;; (widget*) |