zsh-users
 help / color / mirror / code / Atom feed
* Re: Unexpected behavior with case insensitive completion under cygwin
       [not found] <B5885AA769039C49BD9295955CB2E0E40589798A@lonpexch501.ctxuk.citrix.com>
@ 2004-03-24 12:53 ` Peter Stephenson
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 2004-03-24 12:53 UTC (permalink / raw)
  To: 'zsh-users@sunsite.dk'

> This is great, but can anyone explain what's going on?

Unfortunately using matcher styles makes the already hard-to-understand
_path_files even more difficult.

You could try running ^x? (_complete_debug) in place of completion.
That will at least show you what it's executing.  Unfortunately the
output is likely to be the size of the telephone directory.

Have you tried setting the new option nocaseglob?

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 692070


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Unexpected behavior with case insensitive completion under cygwin
@ 2004-03-24 10:52 John Cooper
  0 siblings, 0 replies; 2+ messages in thread
From: John Cooper @ 2004-03-24 10:52 UTC (permalink / raw)
  To: 'zsh-users@sunsite.dk'

[-- Attachment #1: Type: text/plain, Size: 1093 bytes --]

[I'm using zsh 4.2.0, compiled under a recent cygwin, on WinXP SP1]

Earlier in the week I was experiencing the following problem:

Run `zsh -f' followed by:
$ autoload -U compinit
$ compinit -C
$ ls c:/WIN<tab>    => c:/WINDOWS/
$ ls c:/win<tab>    => doesn't complete, as expected

$ zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'

$ ls c:/WIN<tab>    => doesn't complete - is this a bug?
$ ls c:/win<tab>    => doesn't complete - is this a bug?

It also no longer completes when using the cygdrive prefix:

$ ls /cygdrive/c/WIN<tab>  => doesn't complete, but it did before the zstyle
command above.

Note however, that it will now complete case-insensitively when completing
relative paths:
$ cd c:/
$ ls WIN<tab>   => WINDOWS/
$ ls win<tab>   => WINDOWS/


I've spent quite a while trying various things, and found this morning that
the following will fix the problem:

$ zstyle ':completion:*:paths' accept-exact true

Now:
$ ls /cygdrive/c/win<tab>  => /cygdrive/c/WINDOWS/
$ ls c:/win<tab>  => c:/WINDOWS/



This is great, but can anyone explain what's going on?

Thanks,

John.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-03-24 12:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <B5885AA769039C49BD9295955CB2E0E40589798A@lonpexch501.ctxuk.citrix.com>
2004-03-24 12:53 ` Unexpected behavior with case insensitive completion under cygwin Peter Stephenson
2004-03-24 10:52 John Cooper

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).