zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: -M in _zstyle
@ 2000-01-06 12:33 Sven Wischnowsky
  0 siblings, 0 replies; only message in thread
From: Sven Wischnowsky @ 2000-01-06 12:33 UTC (permalink / raw)
  To: zsh-workers


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@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-01-06 12:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-01-06 12:33 PATCH: -M in _zstyle Sven Wischnowsky

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).