Zsh Mailing List Archive
Messages sorted by:
Re: problem with _arguments exclusion lists
- X-seq: zsh-workers 14104
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>, zsh-workers@xxxxxxxxxx
- Subject: Re: problem with _arguments exclusion lists
- Date: Thu, 26 Apr 2001 12:00:39 +0100 (BST)
- In-reply-to: <200104241000.MAA02825@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
--- Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
> Ok, here's my suggestion. The option's name is `-w', dunno if we
> exchange the meaning of -W and -w (-w is the stronger one, so to
Yes, we probably should swap them.
> Then I suggest to use the following as the pattern-match utility
Looks good. I thought the description might be more complicated than
just using -X.
> [[ -n "$PREFIX$SUFFIX" ]]
I'm not sure about this line at the end. It is not a likely option name
but, using the usual example, this would prevent a -c0nf option being
completed from -c0<tab>. In what sort of case did you see it as being
> It might be called as in:
> _arguments -s '(-conf)-c+:numeric value:prop "[0-9]#"' '-conf'
Testing this, I get what I thought was -w behaviour only: -c<tab>
I thought that it was only going to offer -f if _arguments was passed
the -w option.
> That feels quite satisfying.
It's great. Thanks Sven.
> So, if anyway can tell me a good name for that utility function, I'm
> going to commit it. I really don't have the faintest idea. Oliver?
I didn't have much in mind. The best I can think of is _guard. I'd
prefer something short because it will be most used in the generally
long _arguments specs so I'm not too keen on something like
_messsage_guarded. Other ideas are _block, _pattern, _failpat.
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie
Messages sorted by: