* Re: _argument sets [was Re: a couple of completion questions]
@ 2000-06-08 9:38 Sven Wischnowsky
0 siblings, 0 replies; 2+ messages in thread
From: Sven Wischnowsky @ 2000-06-08 9:38 UTC (permalink / raw)
To: zsh-workers
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: a couple of completion questions
@ 2000-06-07 8:50 Sven Wischnowsky
2000-06-07 15:38 ` _argument sets [was Re: a couple of completion questions] Clint Adams
0 siblings, 1 reply; 2+ messages in thread
From: Sven Wischnowsky @ 2000-06-07 8:50 UTC (permalink / raw)
To: zsh-workers
Clint Adams wrote:
> Included at the bottom of this message is my current working copy of _dpkg.
>
> Firstly, is there a simple way to change the _arguments for
> remove|purge|status|listfiles in the state switch to use -A
> without factoring out each case and adding the appropriate
> options?
Sorry, I don't understand... what do you want to do?
> My second question has now been invalidated, so I'll substitute
> these two thoughts: it would be nice if -iR engaged the state engine
> in the same way -i -R or -R -i does;
If I understand you correctly here, than that's what we are discussing
currently in that rpm-thread. I hope to be able to work on this soon.
> and also, the call to _arguments
> used in the state switch for install/record_avail does not behave
> as described in zshcompsys(1), though I'm taking advantage of that.
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?)?
Bye
Sven
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] 2+ messages in thread
* _argument sets [was Re: a couple of completion questions]
2000-06-07 8:50 a couple of completion questions Sven Wischnowsky
@ 2000-06-07 15:38 ` Clint Adams
0 siblings, 0 replies; 2+ messages in thread
From: Clint Adams @ 2000-06-07 15:38 UTC (permalink / raw)
To: Sven Wischnowsky; +Cc: zsh-workers
> 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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-06-08 9:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-08 9:38 _argument sets [was Re: a couple of completion questions] Sven Wischnowsky
-- 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
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).