From: Jesper Holmberg <jesper.holmberg.5791@student.uu.se>
To: Zsh-users List <zsh-users@sunsite.dk>
Subject: Re: Case-insensitive completion
Date: Mon, 15 Sep 2003 21:08:17 +0200 [thread overview]
Message-ID: <20030915190817.GA582@strindberg.student.uu.se> (raw)
In-Reply-To: <1030914185817.ZM27558@candle.brasslantern.com>
* On Sun Sep 14, Bart Schaefer wrote:
> On Sep 14, 12:30pm, Jesper Holmberg wrote:
> Completers are called in order until one of them succeeds. Because the
> _complete call found "nik", _complete:jhcase was never called.
Thank you for your reply, Bart. I thought that all the completers were
called, each appending to the previous list. I realize now that what I'm
trying to achieve is quite difficult with the way it really works. I'll
have a try with your suggested solution.
However, perhaps I better state my original problem here, instead of
trying to solve it with the wrong solution.
I have been using case-insensitive completion of file names for a while
now, with the generic:
zstyle ':completion:*' matcher-list 'm:{a-zåäö}={A-ZÅÄÖ}'
This works well, but - as is the essence of case-insensitivity - one loses
some precision in specifying ones needs: it is difficult to express that
in this particular instance I want to really match with case sensitivity.
Say for example I have the following files:
aac.txt aAa.txt Aaa.txt aAb.txt
If I want to complete for "Aaa.txt", it works well, I just put capital "A"
and hit tab, and since the matching is only one-way, the completer knows
that I really want a capital A, and gives me Aaa.txt.
If, on the other hand, I wanted aac.txt, hitting "aa" would not really
help me, since "aAa.txt", "Aaa.txt" and "aAb.txt" would all be proposed
before my aac.txt. I am thus looking for an easy way to specify that
*this time* I really want to match on literally "aa".
Perhaps what I want is unachievable, but has anyone solved this in a smart
way?
TIA,
Jesper
next prev parent reply other threads:[~2003-09-15 19:09 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-14 10:30 Jesper Holmberg
2003-09-14 18:58 ` Bart Schaefer
2003-09-15 19:08 ` Jesper Holmberg [this message]
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=20030915190817.GA582@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).