From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15247 invoked from network); 17 Sep 2003 14:59:07 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 17 Sep 2003 14:59:07 -0000 Received: (qmail 11503 invoked by alias); 17 Sep 2003 14:54:25 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6596 Received: (qmail 11489 invoked from network); 17 Sep 2003 14:54:24 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 17 Sep 2003 14:54:24 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [4.64.232.255] by sunsite.dk (MessageWall 1.0.8) with SMTP; 17 Sep 2003 14:54:18 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id h8HEavT01446 for zsh-users@sunsite.dk; Wed, 17 Sep 2003 07:36:57 -0700 From: Bart Schaefer Message-Id: <1030917143657.ZM1445@candle.brasslantern.com> Date: Wed, 17 Sep 2003 14:36:57 +0000 In-Reply-To: <17942.1063783839@gmcs3.local> Comments: In reply to Oliver Kiddle "Re: Case-insensitive completion" (Sep 17, 9:30am) References: <20030914103053.GA827@strindberg.student.uu.se> <1030914185817.ZM27558@candle.brasslantern.com> <20030915190817.GA582@strindberg.student.uu.se> <1030916170354.ZM30176@candle.brasslantern.com> <17942.1063783839@gmcs3.local> X-Mailer: Z-Mail (5.0.0 30July97) To: Zsh-users List Subject: Re: Case-insensitive completion MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Sep 17, 9:30am, Oliver Kiddle wrote: } } Bart wrote: } } > Normally the way to do that would be to use different keybindings for } > "complete case-insensitively" vs. "complete case-sensitively" and tell } > zsh your preference by which of them you invoke. } } Would always use _generic for that type of thing myself. Avoids the need } for a separate function file: Ah, yes, I'd completely (ahem) forgotten about _generic. The only advantage to using a separate file is the automatic #compdef, which isn't much advantage at all. } zle -C case-sensitive complete-word _generic } zstyle ':completion:case-sensitive::::' completer _expand _complete _ignored In fact, you don't even need that style unless using an unusual set of completers; this one is sufficient: } zstyle ':completion:case-sensitive:*' matcher-list ''