From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9575 invoked from network); 15 Sep 2003 19:09:32 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 15 Sep 2003 19:09:32 -0000 Received: (qmail 3927 invoked by alias); 15 Sep 2003 19:09:15 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6576 Received: (qmail 3917 invoked from network); 15 Sep 2003 19:09:14 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 15 Sep 2003 19:09:14 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [130.238.4.143] by sunsite.dk (MessageWall 1.0.8) with SMTP; 15 Sep 2003 19:9:14 -0000 Received: from elanus (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 4233B4CF2 for ; Mon, 15 Sep 2003 21:09:14 +0200 (DFT) Received: from elanus.its.uu.se(127.0.0.1) by elanus.its.uu.se via virus-scan id s20799; Mon, 15 Sep 03 21:09:06 +0200 Received: from localhost (NL04-165-13.STUDENT.UU.SE [10.11.165.13]) by elanus.its.uu.se (Postfix) with ESMTP id E12554B91 for ; Mon, 15 Sep 2003 21:09:05 +0200 (DFT) Received: from jesper by localhost with local (Exim 4.22) id 19yyht-0000HE-Fa for zsh-users@sunsite.dk; Mon, 15 Sep 2003 21:08:17 +0200 Date: Mon, 15 Sep 2003 21:08:17 +0200 From: Jesper Holmberg To: Zsh-users List Subject: Re: Case-insensitive completion Message-ID: <20030915190817.GA582@strindberg.student.uu.se> Mail-Followup-To: Zsh-users List References: <20030914103053.GA827@strindberg.student.uu.se> <1030914185817.ZM27558@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1030914185817.ZM27558@candle.brasslantern.com> User-Agent: Mutt/1.5.4i * 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