Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh forward completion (quite embarrassing)
- X-seq: zsh-users 17151
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: zsh forward completion (quite embarrassing)
- Date: Tue, 19 Jun 2012 22:26:52 +0000 (UTC)
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Organization: SuccessTheory
- References: <XnsA077E3E5FD131zzappergmailcom@80.91.229.10> <87a9zzq8gy.fsf@ft.bewatermyfriend.org>
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