Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Question on filename completion
- X-seq: zsh-users 12860
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: "Gowtham M" <gowthamgowtham@xxxxxxxxx>
- Subject: Re: Question on filename completion
- Date: Wed, 21 May 2008 01:32:44 -0700
- Cc: "Zsh Users" <zsh-users@xxxxxxxxxx>
- In-reply-to: <d53cb3110805210111l373971d2n59d85474f0b368de@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <d53cb3110805181023p1e823d8drb196db9e52f79b33@xxxxxxxxxxxxxx> <080518120311.ZM4212@xxxxxxxxxxxxxxxxxxxxxx> <20080518212422.6f14cf75@pws-pc> <d53cb3110805210111l373971d2n59d85474f0b368de@xxxxxxxxxxxxxx>
On May 21, 1:41pm, Gowtham M wrote:
}
} thousands of matches are to be checked. So, I would like
} to disable this feature for every completion attempt.
}
} How can I do it?
Other than by applying the patch PWS sent for _path_files and then
setting the accept-exact-dirs zstyle, you mean?
You can try generalizing the preserve-prefix hack that I suggested:
zstyle ':completion:*' preserve-prefix '*/'
That will force _path_files to do its work only on the rightmost
path segment, after the rightmost slash. I don't immediately see
any severe drawbacks, but that doesn't mean there aren't some.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author