From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22445 invoked from network); 15 Jul 2004 17:17:46 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 15 Jul 2004 17:17:46 -0000 Received: (qmail 19750 invoked from network); 15 Jul 2004 17:17:28 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 15 Jul 2004 17:17:28 -0000 Received: (qmail 7245 invoked by alias); 15 Jul 2004 17:10:41 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7697 Received: (qmail 7227 invoked from network); 15 Jul 2004 17:10:41 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 15 Jul 2004 17:10:41 -0000 Received: (qmail 85093 invoked from network); 15 Jul 2004 16:44:00 -0000 Received: from madrid10.amenworld.com (62.193.203.32) by a.mx.sunsite.dk with SMTP; 15 Jul 2004 16:40:11 -0000 Received: from DervishD.pleyades.net (212.Red-80-35-44.pooles.rima-tde.net [80.35.44.212]) by madrid10.amenworld.com (8.10.2/8.10.2) with ESMTP id i6FGe9c07457 for ; Thu, 15 Jul 2004 18:40:10 +0200 Received: from raul@pleyades.net by DervishD.pleyades.net with local (Exim MTA 2.05) id <1Bl9Dv-0002tJ-00>; Thu, 15 Jul 2004 18:36:43 +0200 Date: Thu, 15 Jul 2004 18:36:43 +0200 From: DervishD To: zsh-users@sunsite.dk Subject: Re: Coloring completions Message-ID: <20040715163643.GA10866@DervishD> Mail-Followup-To: zsh-users@sunsite.dk References: <20040714112143.GA6811@DervishD> <20040715105054.GC10481@DervishD> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.4.2.1i Organization: Pleyades Hi Bart :) * Bart Schaefer dixit: > > Hey, that's weird :((( I'm testing again completion and *all* > > colorable files are colored *except* directories > unsetopt markdirs Oh, my... Thanks, Bart, you're great :) > When markdirs is set, the expansion of the glob appends a trailing slash > to the file name, and thus the coloring code no longer recognizes it as > being a string match for the actual directory name. Why it doesn't happen with executable names (which has an asterisk added) or other kind of files? I mean, why 'listtypes' doesn't have the same effect? > (When you're using default completion the file expansion is all done in > the internals and markdirs is ignored.) But the same is not applicable to 'listtypes'. Doesn't seem that weird? > You might want to take a look at the value assigned to the _comp_options > array in compinit, and the subsequent _comp_setup assignment. One of > the first things _main_complete does is to eval that setup string. Yes, I've took a look at it: very clever and useful :)) Thanks a lot, Bart, as always :) Raúl Núñez de Arenas Coronado -- Linux Registered User 88736 http://www.pleyades.net & http://raul.pleyades.net/