From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11667 invoked from network); 14 Sep 2003 10:31:51 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 14 Sep 2003 10:31:51 -0000 Received: (qmail 14690 invoked by alias); 14 Sep 2003 10:31:40 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6573 Received: (qmail 14679 invoked from network); 14 Sep 2003 10:31:40 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 14 Sep 2003 10:31:40 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [130.238.4.143] by sunsite.dk (MessageWall 1.0.8) with SMTP; 14 Sep 2003 10:31:38 -0000 Received: from elanus (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 5FD5A4B7A for ; Sun, 14 Sep 2003 12:31:38 +0200 (DFT) Received: from elanus.its.uu.se(127.0.0.1) by elanus.its.uu.se via virus-scan id s20529; Sun, 14 Sep 03 12:31:32 +0200 Received: from localhost (NL04-165-13.STUDENT.UU.SE [10.11.165.13]) by elanus.its.uu.se (Postfix) with ESMTP id 2CD554A5D for ; Sun, 14 Sep 2003 12:31:32 +0200 (DFT) Received: from jesper by localhost with local (Exim 4.22) id 19yU9d-0000xF-Rj for zsh-users@sunsite.dk; Sun, 14 Sep 2003 12:30:53 +0200 Date: Sun, 14 Sep 2003 12:30:53 +0200 From: Jesper Holmberg To: Zsh-users List Subject: Case-insensitive completion Message-ID: <20030914103053.GA827@strindberg.student.uu.se> Mail-Followup-To: Zsh-users List Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.4i 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" 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" 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