Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Problem with complete-all
- X-seq: zsh-users 7826
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Jesper Holmberg <jeho5791@xxxxxxxxxxxxx>
- Subject: Re: Problem with complete-all
- Date: Fri, 13 Aug 2004 11:33:08 +0200
- Cc: Zsh-users List <zsh-users@xxxxxxxxxx>
- In-reply-to: <20040813074526.GM1191@localhost>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20040813074526.GM1191@localhost>
Jesper Holmberg wrote:
> I can't get complete-all to work as I would like it to. Perhaps I have
> This is what I have in my .zshrc, taken from the manual:
It seems we need to fix the example in the manual.
> zle -C all-matches complete-word _generic
> bindkey '^Xx' all-matches
> zstyle ':completion:all-matches:*' old-matches only
> zstyle ':completion:all-matches::::' completer _all_matches
Try changing the last style to add _complete after _all_matches:
zstyle ':completion:all-matches::::' completer _all_matches _complete
It needs _complete there to actually generate some matches.
I also use this:
zstyle ':completion:all-matches:*' insert true
which makes it just insert the matches instead of giving you them as
an extra match.
and this:
zstyle ':completion:all-matches:*' file-patterns \
'%p:globbed-files' '*(-/):directories' '*:all-files'
That prevents it from inserting all the sub-directories in cases where
subdirectories are only completed to allow you to complete files within
them.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author