From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19496 invoked from network); 15 Apr 2002 20:20:41 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 15 Apr 2002 20:20:41 -0000 Received: (qmail 21199 invoked by alias); 15 Apr 2002 20:20:00 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4834 Received: (qmail 21187 invoked from network); 15 Apr 2002 20:19:58 -0000 Date: Mon, 15 Apr 2002 13:19:47 -0700 (PDT) From: Bart Schaefer Sender: schaefer@ns1.sodaware.com To: Hannu Koivisto cc: "Zsh Users' List" Subject: Re: Case-insensitive completion of files with matcher-list In-Reply-To: <87ofgk6cut.fsf@lynx.ionific.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 15 Apr 2002, Hannu Koivisto wrote: > zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' > > That works fine indeed, but what if I want case-insensitive > completion only for files? After reading about contexts and > fiddling with C-x h, I figured that > > zstyle ':completion:*:all-files' matcher-list 'm:{a-zA-Z}={A-Za-z}' > > should do the trick You're not quite right. matcher-list is used only at the global level, not for individual tags like all-files. For an individual tag, you want to use just the 'matcher' style: zstyle ':completion:*:all-files' matcher 'm:{a-zA-Z}={A-Za-z}' Unfortunately, there appears to be a bug in _path_files -- it copies any global matcher from matcher-list through to the call to compfiles, but it doesn't do the same for a matcher passed to it with the -M option (which is where the string from the matcher style ends up). Unfortunately I don't see offhand how to fix this. Sven?