Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: completion for zstyle
- X-seq: zsh-workers 9193
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: completion for zstyle
- Date: Tue, 4 Jan 2000 10:20:45 +0100 (MET)
- In-reply-to: Peter Stephenson's message of Thu, 23 Dec 1999 21:54:38 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Peter Stephenson wrote:
> Here's some completion support for zstyle. In the first argument it will
> complete only :completion: or :zftp:; for the second all the standard styles;
> for the third, it knows about most completable values for the various
> styles (and knows whether they are specific to :completion:* or :zftp:*).
> Goodness knows if I've used contexts and tags in a consistent fashion
> within _zstyle itself.
I'm not Goodness but I think it looks fine. Just one typo and two
omissions.
Bye
Sven
diff -ru ../z.old/Completion/Builtins/_zstyle Completion/Builtins/_zstyle
--- ../z.old/Completion/Builtins/_zstyle Tue Jan 4 10:16:06 2000
+++ Completion/Builtins/_zstyle Tue Jan 4 10:17:34 2000
@@ -1,7 +1,8 @@
#compdef zstyle
-local curcontext="$curcontext" state ostate line expl ctop
-local nm=$compstat[nmatches]
+local curcontext="$curcontext" state context ostate line expl ctop
+local nm=$compstate[nmatches]
+typeset -A opt_args
typeset -A styles
# Assoc array of styles; the values give the possible top-level
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author