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

Re: zsh forward completion (quite embarrassing)



On Tue, 19 Jun 2012 22:26:52 +0000
zzapper <david@xxxxxxxxxx> wrote:
> 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
> 
> zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' \
>     'r:|[._-]=* r:|=*' 'l:|=* r:|=*'

I think that matcher list might be putting "*"s in interesting places.

-- 
Peter Stephenson <pws@xxxxxxx>            Software Engineer
Tel: +44 (0)1223 692070                   Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK


Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog



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