Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Question on filename completion



On Wed, 21 May 2008 13:41:18 +0530
"Gowtham M" <gowthamgowtham@xxxxxxxxx> wrote:
> Ok, now I understood that this feature is to complete
> /u/i/stdio.h to /usr/include/stdio.h. This feature is
> quite useful, but this simply will not scale up when
> thousands of matches are to be checked. So, I would like
> to disable this feature for every completion attempt.
> 
> How can I do it?

You will need to apply the patch I just sent, which is entirely shell code
(apart from the documentation).  If you don't have access to the
installation you can locate _path_files in your fpath and put it in your
own functions directory setting

fpath=(~/myfns $fpath)

or whatever.  Then you need to set

zstyle ':completion:*' accept-exact-dirs true

in ~/.zshrc.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070



Messages sorted by: Reverse Date, Date, Thread, Author