zsh-users
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Jesper Holmberg <jesper.holmberg.5791@student.uu.se>
Cc: Zsh-users List <zsh-users@sunsite.dk>
Subject: Re: Case-insensitive completion
Date: Wed, 17 Sep 2003 09:40:44 +0200	[thread overview]
Message-ID: <18061.1063784444@gmcs3.local> (raw)
In-Reply-To: <20030914103053.GA827@strindberg.student.uu.se>

On 14 Sep, Jesper Holmberg wrote:
> 
> 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.

Here's another idea on how to do this. It's no better than Bart's
suggestion but might be closer to what you want to do. It's not specific
to filename completion and it still suffers the problem that matches
that don't need the matching control get added twice. Not compatible
with using a group-name style of '' to use the tag name but I'm supposing
that for pure menu-completion you might not care about that anyway.

_cscomplete() {
  _complete
  return 1
}
zstyle ':completion:*:cscomplete:*' group-name case-sensitive
zstyle ':completion:*:complete:*' group-name case-insensitive
zstyle ':completion:*' group-order case-sensitive case-insensitive
zstyle ':completion:*::::' completer _cscomplete _complete
zstyle ':completion:*:cscomplete:*:*' matcher-list ''
zstyle ':completion:*:complete:*' matcher-list 'm:{a-z}={A-Z}'


  parent reply	other threads:[~2003-09-17  7:38 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
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 [this message]
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=18061.1063784444@gmcs3.local \
    --to=okiddle@yahoo.co.uk \
    --cc=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).