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

Re: choice of case in tab completions



Anthony Heading wrote:
> I don't know if this is behind the times, but I
> have a line:
>     compctl -M 'm:{a-z}={A-Z} m:{A-Z}={a-z}'
> in zshrc to induce case insensitive completion.
> 
> It works very well with one exception, where e.g. I
> might have three files with the names
>     include
>     INSTALL
>     InstallBin.dsp
> 
> (this example in fact comes from the Apache httpd root dir)
> 
> When I want to read the INSTALL file, I type:
> 
>     % more ins<TAB>
> 
> which sadly completes to:
> 
>     % more Install

Surely this is because the match is ambiguous?  It doesn't know whether
you want INSTALL or Install.bin and has to pick the characters from one
or other.  You will need some other feature of zsh, such as
menucompletion, to fix that.  With my settings (with menucompletion) it
shows me InsTALL which is a sign it hasn't resolved what it's completing
yet.  (I was trying this with the new completion system, however.)

-- 
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/



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