zsh-users
 help / color / mirror / code / Atom feed
* Case-insensitive completion
@ 2003-09-14 10:30 Jesper Holmberg
  2003-09-14 18:58 ` Bart Schaefer
  2003-09-17  7:40 ` Oliver Kiddle
  0 siblings, 2 replies; 14+ messages in thread
From: Jesper Holmberg @ 2003-09-14 10:30 UTC (permalink / raw)
  To: Zsh-users List

I'm trying to find a way where completion of file names is case-insensitive
but where the case-insensitive matches are suggested after the case-sensitive
ones.

To test this, I've created to directories, called "Nic" and "nik".

If I use these two lines:

zstyle ':completion:*' completer _expand _complete _ignored
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'

I get case-insensitive matching, so that typing "cd ni<tab>" gives me
first "Nic", then "nik". This is fine, but as I said, I would like the
case-sensitive completions matching first, so that "nik" would be
suggested before "Nic".

As I interpret the manual, the following lines:

zstyle ':completion:*' completer _expand _complete _complete:jhcase _ignored
zstyle ':completion:*:jhcase:*' matcher-list 'm:{a-z}={A-Z}'

would achieve what I want. However, now typing "cd ni<tab>" gives me only
"nik", and apparently "Nic" no longer matches. I suppose my jhcase-completion
completer is never called.

What am I missing?

TIA,

Jesper


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

end of thread, other threads:[~2003-09-18 10:27 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-14 10:30 Case-insensitive completion Jesper Holmberg
2003-09-14 18:58 ` Bart Schaefer
2003-09-15 19:08   ` Jesper Holmberg
2003-09-16 17:03     ` Bart Schaefer
2003-09-17  7:30       ` Oliver Kiddle
2003-09-17 14:36         ` Bart Schaefer
2003-09-16 10:09   ` Oliver Kiddle
2003-09-16 11:59     ` Peter Stephenson
2003-09-16 12:17       ` Oliver Kiddle
2003-09-16 12:22         ` Jesper Holmberg
2003-09-17  7:40 ` Oliver Kiddle
2003-09-17 14:43   ` Bart Schaefer
2003-09-17 15:15     ` Oliver Kiddle
2003-09-18 10:26       ` Jesper Holmberg

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).