about summary refs log tree commit diff
path: root/Completion/X/Type/_x_visual
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/X/Type/_x_visual')
-rw-r--r--Completion/X/Type/_x_visual10
1 files changed, 10 insertions, 0 deletions
diff --git a/Completion/X/Type/_x_visual b/Completion/X/Type/_x_visual
new file mode 100644
index 000000000..b28208444
--- /dev/null
+++ b/Completion/X/Type/_x_visual
@@ -0,0 +1,10 @@
+#autoload
+
+local expl
+
+# 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