Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completion in pwd before subdirecories
- X-seq: zsh-users 6891
- From: Jesper Holmberg <jesperh@xxxxxxxxx>
- To: Zsh-users List <zsh-users@xxxxxxxxxx>
- Subject: Re: Completion in pwd before subdirecories
- Date: Mon, 15 Dec 2003 13:51:52 +0100
- In-reply-to: <3213.1071488991@xxxxxxxxxxx>
- Mail-followup-to: Zsh-users List <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20031213154651.GR18859@xxxxxxxxxxxxxxxxxxxx> <1031213191918.ZM5325@xxxxxxxxxxxxxxxxxxxxxxx> <20031213233905.GW18859@xxxxxxxxxxxxxxxxxxxx> <3213.1071488991@xxxxxxxxxxx>
* On Mon Dec 15, Oliver Kiddle wrote:
> You need something like:
>
> zstyle ':completion:*' file-patterns \
> '*(-/):directories %p(^-/):globbed-files' '*:all-files'
> zstyle ':completion:*' group-name ''
> zstyle ':completion:*' group-order \
> globbed-files all-files directories
>
> Unfortunately, that will now break for any completion which specifies a
> glob qualifier such as _chown. I've been meaning to go through adding
> `#q' into all of them to allow this.
I put your lines in my .zshrc, but now I get surprising results:
% ls -R
.:
dar dir dor
./dir:
dur
i.e. dir is a directory including a file called dur.
Now "cat d<tab>" gives dir/, yet another <tab> gives dir/dur, and then it
stays dir/dur no matter how many times I hit <tab>.
Jesper
Messages sorted by:
Reverse Date,
Date,
Thread,
Author