* zsh forward completion (quite embarrassing) @ 2012-06-19 21:24 zzapper 2012-06-19 21:48 ` Frank Terbeck 0 siblings, 1 reply; 5+ messages in thread From: zzapper @ 2012-06-19 21:24 UTC (permalink / raw) To: zsh-users Hi Today I meant to type ls mainf<tab> to complete mainfile.php and instead mistyped ls ainf<tab> and to my surprise it completed correctly to mainfile.php I've always expected to do say ls *ainf<tab> So is forward completion standard with compinit or do you need flags set etc? -- zzapper http://zzapper.co.uk/ Technical Tips ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: zsh forward completion (quite embarrassing) 2012-06-19 21:24 zsh forward completion (quite embarrassing) zzapper @ 2012-06-19 21:48 ` Frank Terbeck 2012-06-19 22:26 ` zzapper 0 siblings, 1 reply; 5+ messages in thread From: Frank Terbeck @ 2012-06-19 21:48 UTC (permalink / raw) To: zsh-users 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: zsh forward completion (quite embarrassing) 2012-06-19 21:48 ` Frank Terbeck @ 2012-06-19 22:26 ` zzapper 2012-06-20 8:07 ` Peter Stephenson 0 siblings, 1 reply; 5+ messages in thread From: zzapper @ 2012-06-19 22:26 UTC (permalink / raw) To: zsh-users Frank Terbeck wrote in news:87a9zzq8gy.fsf@ft.bewatermyfriend.org: > 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: zsh forward completion (quite embarrassing) 2012-06-19 22:26 ` zzapper @ 2012-06-20 8:07 ` Peter Stephenson 2012-06-20 21:21 ` zzapper 0 siblings, 1 reply; 5+ messages in thread From: Peter Stephenson @ 2012-06-20 8:07 UTC (permalink / raw) To: zsh-users On Tue, 19 Jun 2012 22:26:52 +0000 zzapper <david@tvis.co.uk> wrote: > Frank Terbeck wrote in news:87a9zzq8gy.fsf@ft.bewatermyfriend.org: > > > 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@csr.com> 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: zsh forward completion (quite embarrassing) 2012-06-20 8:07 ` Peter Stephenson @ 2012-06-20 21:21 ` zzapper 0 siblings, 0 replies; 5+ messages in thread From: zzapper @ 2012-06-20 21:21 UTC (permalink / raw) To: zsh-users Peter Stephenson wrote in >> >> 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. > I guess I outht to study:- http://zsh.sourceforge.net/Doc/Release/Completion-Widgets.html#Completion- Matching-Control -- zzapper http://zzapper.co.uk/ Technical Tips ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-06-20 21:21 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2012-06-19 21:24 zsh forward completion (quite embarrassing) zzapper 2012-06-19 21:48 ` Frank Terbeck 2012-06-19 22:26 ` zzapper 2012-06-20 8:07 ` Peter Stephenson 2012-06-20 21:21 ` zzapper
Code repositories for project(s) associated with this public inbox https://git.vuxu.org/mirror/zsh/ This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).