about summary refs log tree commit diff
path: root/Completion/X/Type
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2002-01-02 14:45:21 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2002-01-02 14:45:21 +0000
commit8074e07a2ced99c4464d4a72cb93f47a7aacf34b (patch)
tree3a17e6d3d3a0b7daebcdaaeb8daf69d67ec30f13 /Completion/X/Type
parentbc10b0e0a52883d06195d99553e95b484111c3a0 (diff)
downloadzsh-8074e07a2ced99c4464d4a72cb93f47a7aacf34b.tar.gz
zsh-8074e07a2ced99c4464d4a72cb93f47a7aacf34b.tar.xz
zsh-8074e07a2ced99c4464d4a72cb93f47a7aacf34b.zip
16384: new completion for xli/xloadimage and factor out completion of X visuals
Diffstat (limited to 'Completion/X/Type')
-rw-r--r--Completion/X/Type/.distfiles2
-rw-r--r--Completion/X/Type/_x_visual8
2 files changed, 9 insertions, 1 deletions
diff --git a/Completion/X/Type/.distfiles b/Completion/X/Type/.distfiles
index b5eb31446..364e4e6e6 100644
--- a/Completion/X/Type/.distfiles
+++ b/Completion/X/Type/.distfiles
@@ -5,5 +5,5 @@ _x_color              _x_geometry           _x_selection_timeout
 _x_colormapid         _x_keysym             _x_title
 _x_cursor             _x_locale             _x_window
 _x_display            _x_modifier           _xt_session_id
-_x_extension          _x_name
+_x_extension          _x_name               _x_visual
 '
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