Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Something strange with contexts



Andrej Borsenkow wrote:

> bor@itsrm2% lynx 
> tags in context :completion::complete:lynx:argument:
>     prefixes  (_urls _lynx)
> tags in context :completion::complete:lynx:argument-1:
>     arguments options  (_arguments _lynx) 
>     globbed-files      (_files _lynx) 
>     directories        (_files _lynx) 
>     all-files          (_files _lynx)
> 
> This O.K.; note, that we are completing the first argument.
> 
> but
> 
> bor@itsrm2% gzip 
> tags in context :completion::complete:gzip::
>     globbed-files   (_files _gzip) 
>     directories     (_files _gzip) 
>     all-files       (_files _gzip)
> 
> Where is "argument-*" context is setup?

Nowhere. For lynx that comes from _arguments being used. _gzip does
everything itself. In other words: noone has take the time to make
_gzip (and _gunzip and ... lots of other simple functions) use
_arguments to also complete options and stuff.

Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author