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

Re: completion & read, vared



Bart Schaefer wrote:

> 
> ...
>
> To get the effect that you specifically asked for above, you need to change
> the default completion by using "compctl -T", then restore the default when
> vared has exited.  E.g.,
> 
> 	compctl -Tx 'W[0,*]' -u
> 	vared whatever
> 	compctl -T
> 
> As usual, one can't attempt something like this without running into another
> zsh oddity.  In this case,
> 
> 	compctl -T -u
> 
> is accepted and appears in the "compctl -L" output, but is a no-op.

To prevent making all other compctls useless, yes.

> There
> has to be a -x option and a pattern before -T will do anything at all.  The
> manual says -T "is only useful when combined with extended completion" but
> here's a case where (a) it's useful WITHOUT extended completion and (b) it
> fails mysteriously when used in the obvious way.
> 
> We should strive to prevent this sort of thing.
> 

And we are. I am currently implementing the inclusive-or-thing and one 
of the things I already changed is making the default options to -T be 
used.

Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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