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

Re: _approximate without expansion



Bart Schaefer wrote:

> On Oct 14,  1:04pm, John Eikenberry wrote:
> }
> } With my current setup if I start with the correct partial string and
> } hit tab, it completes up to the point of ambiguity, pauses and if I
> } hit tab again it brings up a menu. But when I typo and _approximate
> } gets run it fixes the typo and completes the first of the possible
> } completions.
> 
>     zstyle ':completion::approximate*:*' insert-unambiguous yes
> 
> Note that you need "approximate*" because the actual context is
> ":completion::approximate-N:::" where N is the number of corrections.

Perfect. I had tried insert-unambiguous, missed that * next to approximate.

Thanks.

-- 

John Eikenberry
[jae@xxxxxxxx - http://zhar.net]
______________________________________________________________
"It is difficult to produce a television documentary that is both incisive
and probing when every twelve minutes one is interrupted by twelve dancing
rabbits singing about toilet paper." - Rod Serling



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