Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Use state_descr in _x_utils
- X-seq: zsh-workers 39112
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: PATCH: Use state_descr in _x_utils
- Date: Sun, 28 Aug 2016 18:28:29 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=y0+Sk4lmX50EGyAbcDgKs13KFLIBsAX7wNlhaI4QgV0=; b=0NHRyRUm5pBoiv0XOmqtM14j/jiG8X6ei19aAzo+vC6u8ufOrQn+XY4pmbWVVgRNlH 7R6mrZspK4OryyMFPZU21mpzkyJwxY2dM1baITgxbTG4vWbayIk/eC9FuQmv/ZT6sKO7 thcr+mEF9A5Kyx2HiIw/hpF4CXorWC9reHfBE/B1HbvUMBx/SYCeOmNIiOMl4F5ANEeR lx99un9mW30OrBaVWvCUlCaAnaGNyeD/vXwmsFDqH+27EnhX3qAuXI7xD6sJHa+LZ8FT DUhdrp205q3mdtXgWZ+g1Fv5JDOF9kG1g64JyMatsFsm+P9K8x9wSJ7u/EjETHRNgtsK vlZA==
- In-reply-to: <1306846043-9406-1-git-send-email-mikachu@gmail.com>
- 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
- References: <1306846043-9406-1-git-send-email-mikachu@gmail.com>
I've had a reminder in my Drafts folder to look into state_descr since
2011, finally got around to doing so now. Thanks for adding that :).
---
Completion/X/Command/_x_utils | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/Completion/X/Command/_x_utils b/Completion/X/Command/_x_utils
index 9364235..ebc6aac 100644
--- a/Completion/X/Command/_x_utils
+++ b/Completion/X/Command/_x_utils
@@ -1,6 +1,6 @@
#compdef xdpyinfo xwininfo xkill xfontsel xfd xev xhost xon xsetroot xwd xwud xrdb xprop xlsatoms xlsclients
-local curcontext="$curcontext" state line expl ret=1
+local curcontext="$curcontext" state state_descr line expl ret=1
case "$service" in
xdpyinfo)
@@ -26,10 +26,10 @@ xprop)
'-font[display the properties of a font]:font: _x_font' \
'-len[show at most n bytes of any property]:n' \
'*-fs[read more property formats from file]:file: _files' \
- '*-remove[specify an atom to remove from the target window]:atoms:->atoms' \
- '*-set[specify an atom and a value to set on the target window]:atoms:->atoms:value' \
- '*-f:atoms:->atoms:format: ::dformat' \
- '*:atoms:->atoms'
+ '*-remove[specify an atom to remove from the target window]:property atom:->atoms' \
+ '*-set[specify an atom and a value to set on the target window]:property atom:->atoms:value' \
+ '*-f:property atom:->atoms:format: ::dformat' \
+ '*:property atoms:->atoms'
;;
xlsatoms)
_x_arguments -C \
@@ -199,7 +199,7 @@ xrdb)
esac && ret=0
if [[ $state == atoms ]]; then
- _wanted atoms expl atoms compadd ${${(f)"$(_call_program atoms xlsatoms 2> /dev/null)"}#*$'\t'} && ret=0
+ _wanted atoms expl "$state_descr" compadd ${${(f)"$(_call_program atoms xlsatoms 2> /dev/null)"}#*$'\t'} && ret=0
fi
return ret
--
2.8.2
Messages sorted by:
Reverse Date,
Date,
Thread,
Author