From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1864 invoked from network); 17 Sep 2003 07:38:36 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 17 Sep 2003 07:38:36 -0000 Received: (qmail 18952 invoked by alias); 17 Sep 2003 07:38:26 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6590 Received: (qmail 18942 invoked from network); 17 Sep 2003 07:38:26 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 17 Sep 2003 07:38:26 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [193.109.254.211] by sunsite.dk (MessageWall 1.0.8) with SMTP; 17 Sep 2003 7:38:26 -0000 X-VirusChecked: Checked X-Env-Sender: okiddle@yahoo.co.uk X-Msg-Ref: server-16.tower-36.messagelabs.com!1063784304!597072 X-StarScan-Version: 5.0.7; banners=-,-,- Received: (qmail 13116 invoked from network); 17 Sep 2003 07:38:24 -0000 Received: from iris.logica.co.uk (158.234.9.163) by server-16.tower-36.messagelabs.com with SMTP; 17 Sep 2003 07:38:24 -0000 Received: from gmcs3.local ([158.234.142.61]) by iris.logica.co.uk (8.12.3/8.12.3/Debian -4) with ESMTP id h8H7cOtW012394; Wed, 17 Sep 2003 08:38:24 +0100 Received: from gmcs3.local (localhost [127.0.0.1]) by gmcs3.local (8.11.6/8.11.6/SuSE Linux 0.5) with ESMTP id h8H7eib18063; Wed, 17 Sep 2003 09:40:44 +0200 cc: Zsh-users List X-VirusChecked: Checked X-StarScan-Version: 5.0.7; banners=.,-,- In-reply-to: <20030914103053.GA827@strindberg.student.uu.se> From: Oliver Kiddle References: <20030914103053.GA827@strindberg.student.uu.se> To: Jesper Holmberg Subject: Re: Case-insensitive completion Date: Wed, 17 Sep 2003 09:40:44 +0200 Message-ID: <18061.1063784444@gmcs3.local> 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" 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}'