about summary refs log tree commit diff
path: root/Completion/X
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2002-03-27 14:52:18 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2002-03-27 14:52:18 +0000
commit6efb11a5235e6ac703b9762f23a3137aea0f6ea8 (patch)
treea7028cb3db686c8e862e7a7bfaa8be1e0aa9cd8b /Completion/X
parentdb9ed219a490cfb008a19b8e74edd2ed35ebe875 (diff)
downloadzsh-6efb11a5235e6ac703b9762f23a3137aea0f6ea8.tar.gz
zsh-6efb11a5235e6ac703b9762f23a3137aea0f6ea8.tar.xz
zsh-6efb11a5235e6ac703b9762f23a3137aea0f6ea8.zip
factor out completion of X visuals to a new function
Diffstat (limited to 'Completion/X')
-rw-r--r--Completion/X/Type/_x_visual8
1 files changed, 8 insertions, 0 deletions
diff --git a/Completion/X/Type/_x_visual b/Completion/X/Type/_x_visual
new file mode 100644
index 000000000..13b42ca6e
--- /dev/null
+++ b/Completion/X/Type/_x_visual
@@ -0,0 +1,8 @@
+#autoload
+
+# with the -b option, include `Best' in the matches
+local best="${argv[(r)-b]:+Best}"
+argv[(i)-b]=()
+
+_wanted visuals expl visual compadd "$@" -M 'm:{a-zA-Z}={A-Za-z}' - \
+    $best DirectColor TrueColor PseudoColor StaticColor GrayScale StaticGray