zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <opk@u.genie.co.uk>
To: zsh-workers@sunsite.dk
Subject: Re: problem with _arguments exclusion lists
Date: Tue, 08 May 2001 12:45:04 +0100	[thread overview]
Message-ID: <3AF7DC40.9076728F@u.genie.co.uk> (raw)
In-Reply-To: <200105071110.NAA02851@beta.informatik.hu-berlin.de>

Sven Wischnowsky wrote:
\x1a
> > 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 \


  reply	other threads:[~2001-05-08 11:45 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-26 13:55 Oliver Kiddle
2001-04-26 14:35 ` Sven Wischnowsky
2001-05-04 16:20   ` Oliver Kiddle
2001-05-07 11:10     ` Sven Wischnowsky
2001-05-08 11:45       ` Oliver Kiddle [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-04-12 14:32 Oliver Kiddle
2001-04-17  9:50 ` Sven Wischnowsky
2001-04-17 10:44   ` Oliver Kiddle
2001-04-17 11:28     ` Sven Wischnowsky
2001-04-17 13:55       ` Oliver Kiddle
2001-04-17 14:10         ` Sven Wischnowsky
2001-04-19 14:01           ` Oliver Kiddle
2001-04-20  8:31             ` Sven Wischnowsky
2001-04-23  8:59               ` Oliver Kiddle
2001-04-24 10:00                 ` Sven Wischnowsky
2001-04-26 11:00                   ` Oliver Kiddle
2001-04-26 12:10                     ` Sven Wischnowsky
2001-04-25  7:10                 ` Sven Wischnowsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3AF7DC40.9076728F@u.genie.co.uk \
    --to=opk@u.genie.co.uk \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).