From: Jesper Holmberg <jesper.holmberg.5791@student.uu.se>
To: Zsh-users List <zsh-users@sunsite.dk>
Subject: Case-insensitive completion
Date: Sun, 14 Sep 2003 12:30:53 +0200 [thread overview]
Message-ID: <20030914103053.GA827@strindberg.student.uu.se> (raw)
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
next reply other threads:[~2003-09-14 10:31 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-14 10:30 Jesper Holmberg [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030914103053.GA827@strindberg.student.uu.se \
--to=jesper.holmberg.5791@student.uu.se \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).