Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: problem with _arguments exclusion lists
- X-seq: zsh-workers 14255
- From: Oliver Kiddle <opk@xxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: problem with _arguments exclusion lists
- Date: Tue, 08 May 2001 12:45:04 +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <200105071110.NAA02851@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Sender: kiddleo
Sven Wischnowsky wrote:
> > partially: _vnc can be fixed by using the pattern (|:[0-9]#) which I'll
> > commit later if _guard stays as it is.
I'll commit this now.
>
> Well, _guard was just an attempt at helping in what I consider the usual
> completion style in most cases (i.e. what most people would expect or
> like to see in most cases). As I said, we could always add an option to
> _guard to specify other behaviour (for the return value or pattern
> matching or whatnot). Feel free to add one if you like.
Well it is really the _arguments handling of a 0 return code and not
_guard which I believe could be bettered. That is, it should complete
possible options (like the -c3nf example) as well as displaying
`number'.
I'm happy to require _guard patterns to need to match their thing
partially, hence the commit on the _vnc change. I agree though that
_guard's style of pattern matching can always be extended with an option
later if the need arises.
Oliver
Index: Completion/X/Command/_vnc
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/X/Command/_vnc,v
retrieving revision 1.1
diff -u -r1.1 _vnc
--- Completion/X/Command/_vnc 2001/04/26 14:00:45 1.1
+++ Completion/X/Command/_vnc 2001/05/08 11:43:40
@@ -13,7 +13,7 @@
'-geometry:geometry:(1600x1200 1280x1024 1152x864 1024x768 800x600 640x480)' \
'-depth:pixel depth:(8 16 24 32)' \
'-pixelformat:pixel format' \
- '1::display number:_guard ":[0-9]#"' \
+ '1::display number:_guard "(|:[0-9]#)"' \
- kill \
"-kill:display number:($displays)" \
- help \
Messages sorted by:
Reverse Date,
Date,
Thread,
Author