Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: menu selection and incompatible arguments
- X-seq: zsh-workers 16441
- From: Sven Wischnowsky <wischnow@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: menu selection and incompatible arguments
- Date: Mon, 14 Jan 2002 09:42:07 +0100
- In-reply-to: <1010915613.3833.0.camel@xxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <1010915613.3833.0.camel@xxxxxxxxxxxxxxxxxxxxx>
Borsenkow Andrej wrote:
>
> If you describe incompatible arguments in _arguments like
>
> (-foo)-bar
> (-bar)-foo
>
> and try to complete with -foo on the line -bar is not listed as an
> option. But if you start from empty line, both are listed and you can
> also insert both of them.
>
> Just curious how hard would it be for accept-and-menu-complete to
> respect incompatible arguments in this case?
Currently: pretty hard (because the code used by a-a-m-c and the code
used for menu completion aren't aware of such things and don't call
the completion code again).
These are things I'm currently thinking about when I'm thinking about
moving more stuff into shell code. Maybe there lies a solution, but
menu completion can get so complicated that I want to try it later
(probably together with the all-matches stuff, which has a similar
problem).
Bye
Sven
--
Sven Wischnowsky wischnow@xxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author