diff options
author | Oliver Kiddle <opk@users.sourceforge.net> | 2002-03-27 14:52:18 +0000 |
---|---|---|
committer | Oliver Kiddle <opk@users.sourceforge.net> | 2002-03-27 14:52:18 +0000 |
commit | 6efb11a5235e6ac703b9762f23a3137aea0f6ea8 (patch) | |
tree | a7028cb3db686c8e862e7a7bfaa8be1e0aa9cd8b | |
parent | db9ed219a490cfb008a19b8e74edd2ed35ebe875 (diff) | |
download | zsh-6efb11a5235e6ac703b9762f23a3137aea0f6ea8.tar.gz zsh-6efb11a5235e6ac703b9762f23a3137aea0f6ea8.tar.xz zsh-6efb11a5235e6ac703b9762f23a3137aea0f6ea8.zip |
factor out completion of X visuals to a new function
-rw-r--r-- | Completion/X/Type/_x_visual | 8 |
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 |