From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Bruno Bonfils <asyd@debian-fr.org>
Cc: zsh-workers@sunsite.dk
Subject: Re: _auto-apt
Date: Tue, 21 May 2002 17:03:31 +0100 [thread overview]
Message-ID: <20020521160331.GA26295@logica.com> (raw)
In-Reply-To: <878z6d1pmo.fsf@jazzland.hash-group.net>
On Tue, May 21, 2002 at 05:34:23PM +0200, Bruno Bonfils wrote:
> i attach the _auto-apt completion function that just i finish to
> write. But i still have one problem :
>
> _wanted distribution expl 'distribution' compadd -q -S, $distribs
>
> as you can see, user can use one or many distrubitions, comma
> separated, thats why i add the -S, So, when i a do
>
> auto-apt -a <tab>
>
> i have the completion for main,contrib,non-free,etc..., but :
>
> auto-apt -a main,<tab> do nothing
That is because it doesn't know that it should ignore the `main,'
for the purposes of matching. By doing:
compset -P '*,'
you could make it chop off everything up to the last comma. You
would also probably want compset -S ',*' so that it works with
tab pressed in the middle of a list.
However, in this instance, it would be much easier to just use
_values -s , 'distribution' $distribs
as _values does all that work for you.
Oliver
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
prev parent reply other threads:[~2002-05-21 16:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-21 15:34 _auto-apt Bruno Bonfils
2002-05-21 16:03 ` Oliver Kiddle [this message]
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=20020521160331.GA26295@logica.com \
--to=okiddle@yahoo.co.uk \
--cc=asyd@debian-fr.org \
--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).