* _values' options
@ 2001-05-31 13:20 Oliver Kiddle
2001-05-31 15:20 ` Sven Wischnowsky
0 siblings, 1 reply; 2+ messages in thread
From: Oliver Kiddle @ 2001-05-31 13:20 UTC (permalink / raw)
To: zsh-workers
_values, currently doesn't handle any of the standard compadd style
arguments. This means that it can't be used from _arguments. Try this
to see why:
_arguments '-a:val:_values -s , value one two three'
I do actually have a case where _values would be useful from
_arguments. I'm guessing that all it would need is a zparseopts to
throw the options away?
The other related issue is that _values' -S option is possibly not the
best choice of letter. Ideally, it would be possible to pass _values a
suffix and it would work out when the value being completed is the last
possible value (from the exclusion lists) and then use that suffix.
Oliver
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: _values' options
2001-05-31 13:20 _values' options Oliver Kiddle
@ 2001-05-31 15:20 ` Sven Wischnowsky
0 siblings, 0 replies; 2+ messages in thread
From: Sven Wischnowsky @ 2001-05-31 15:20 UTC (permalink / raw)
To: zsh-workers
Oliver Kiddle wrote:
> _values, currently doesn't handle any of the standard compadd style
> arguments. This means that it can't be used from _arguments. Try this
> to see why:
> _arguments '-a:val:_values -s , value one two three'
>
> I do actually have a case where _values would be useful from
> _arguments. I'm guessing that all it would need is a zparseopts to
> throw the options away?
Yes, some. It might be possible to pass some of them through to the
calls to compadd, as you well know, since:
> The other related issue is that _values' -S option is possibly not the
> best choice of letter. Ideally, it would be possible to pass _values a
> suffix and it would work out when the value being completed is the last
> possible value (from the exclusion lists) and then use that suffix.
In some cases, yes. I guess I didn't made that because there are so
many cases where _values has to use the suffix itself.
There it is again... suffix handling, one of the things on the list in
my head...
Bye
Sven
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-05-31 15:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-31 13:20 _values' options Oliver Kiddle
2001-05-31 15:20 ` Sven Wischnowsky
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).