Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: completion for zle and integer builtins
- X-seq: zsh-workers 39370
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxx>
- Subject: PATCH: completion for zle and integer builtins
- Date: Sat, 17 Sep 2016 01:41:26 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1474069287; bh=6VK3mgNNkhaoQxQMMUHLeUh/64ZytbVcAg/Gbe6GAOc=; h=From:To:Subject:Date:From:Subject; b=LNS946A+nzye4uf/HpqOph22FaVE5yqYTbk966zqPtln6L1D486zUJ5MaYGHxv44QohtUGlht28IMp5m6eXY4Rb/FdW96xxLHXODaPYUuS7NbSf+nooaH8UqwG+eWz3mhXWgbSq4oTUm8Wu6YDyBVXXJCJk5wJrYaPAbcGjkbqn53i3fUNNZmVQ7a71JPrSQPWqdrZ3R6qimWApCEzOYJzTE5yyMyK8RHAfVDgN0ZCtGZWn8ZW1jvIYfYsAOaas7Vpe7QIYt5ug5AZsVHAwdEmnJ+lAo+9mtWyKIe2QIXSy5eeUDz+yINS1zNV44KiEHfKDBZDr0AeZpYQTKo8CbQA==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
The -w and -K options to zle following the widget name were missing from
the completion. Also, the numeric base was missing for integer.
Oliver
diff --git a/Completion/Zsh/Command/_typeset b/Completion/Zsh/Command/_typeset
index 4e29c23..94f63cf 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 f189b8f..e01d0a9 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*)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author