Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: -M in _zstyle
- X-seq: zsh-workers 9244
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: PATCH: -M in _zstyle
- Date: Thu, 6 Jan 2000 13:33:11 +0100 (MET)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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