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

Re: zsh forward completion (quite embarrassing)



Frank Terbeck wrote in news:87a9zzq8gy.fsf@xxxxxxxxxxxxxxxxxxxxxx:

> zzapper wrote:
> [...]
>> ls ainf<tab> and to my surprise it completed correctly to mainfile.php
> [...]
>> So is forward completion standard with compinit or do you need flags
>> set etc? 
> 
> I guess you're using the _approximate (or maybe _correct) completer with
> some sort of `max-errors' style set.
> 
> Regards, Frank
> 

I have

autoload -U compinit
compinit
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' \
    'r:|[._-]=* r:|=*' 'l:|=* r:|=*'

zle -C expand-args-of complete-word _generic
zstyle ':completion:expand-args-of::::' completer expand-args-of


-- 
zzapper
http://zzapper.co.uk/ Technical Tips



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