From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: _argument sets [was Re: a couple of completion questions]
Date: Thu, 8 Jun 2000 11:38:26 +0200 (MET DST) [thread overview]
Message-ID: <200006080938.LAA08166@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Clint Adams's message of Wed, 7 Jun 2000 11:38:31 -0400
Clint Adams wrote:
> > I know nothing about dpkg and friends. In which way does it behave
> > differently from what's documented and how do you make use of it
> > (i.e.: is there something wrong? or only documented in the wrong way?
> > or should have both what it's doing and what's documented?)?
>
> Okay, first off, this is what I want. <arg> is meant to be
> -i, -A, or the long-option equivalents.
>
> dpkg <arg> <TAB> right now completes _files -g \*.deb by default.
> If I remove the -A to _arguments, it will complete $_dpkg_options.
> Ideally, it should complete _files -g \*.deb, $_dpkg_options,
> and $_dpkg_options_recursive, unless one of $_dpkg_options_recursive
> is present, in which case it should complete directories instead of
> \*.deb. BTW, I swapped the positions of -C and -A to _arguments.
>
> It does this, except for completing $_dpkg_options or
> $_dpkg_options_recursive. Or rather, it will for
>
> dpkg --install --<TAB>
> dpkg --install -<TAB>
> dpkg --install -O<TAB>
>
> but it won't complete for
>
> dpkg --install --a<TAB>
>
> So if I type dpkg --install --<TAB> I get --abort-after,
> but if I type --a<TAB>, I get corrections.
Aha, one of those. I'll look at _arguments at the weekend anyway and
have put it on my list.
Bye
Sven
P.S.: Due to the missing sub-indentation I didn't realise immediately
that _dpkg uses multiple sets.
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next reply other threads:[~2000-06-08 9:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-06-08 9:38 Sven Wischnowsky [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-06-07 8:50 a couple of completion questions Sven Wischnowsky
2000-06-07 15:38 ` _argument sets [was Re: a couple of completion questions] Clint Adams
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=200006080938.LAA08166@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.auc.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).