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_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