Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: -M in _zstyle



Partial word completion for style names.

This deliberately does not test underscores yet because I first
wanted to ask why remote_glob uses one and not a minus sign.

Bye
 Sven

diff -ru ../z.old/Completion/Builtins/_zstyle Completion/Builtins/_zstyle
--- ../z.old/Completion/Builtins/_zstyle	Thu Jan  6 13:27:39 2000
+++ Completion/Builtins/_zstyle	Thu Jan  6 13:29:16 2000
@@ -97,7 +97,7 @@
         ctop=cz
       fi
       _wanted styles expl style &&
-         compadd "$expl[@]" - ${(k)styles[(R)[^:]#[$ctop][^:]#:*]}
+         compadd "$expl[@]" -M 'r:|-=* r:|=*' - ${(k)styles[(R)[^:]#[$ctop][^:]#:*]}
       ;;
       
     style-arg)

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author