From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27182 invoked by alias); 13 Sep 2011 17:12:29 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16343 Received: (qmail 4599 invoked from network); 13 Sep 2011 17:12:17 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at m.gmane.org designates 80.91.229.12 as permitted sender) X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@zsh.org From: Yuri DElia Subject: Re: Completion lists Date: Tue, 13 Sep 2011 17:11:54 +0000 (UTC) Message-ID: References: <110913074320.ZM14249@torch.brasslantern.com> <110913092957.ZM14421@torch.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 93.89.57.166 (Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20100101 Firefox/6.0.2 Iceweasel/6.0.2) Bart Schaefer brasslantern.com> writes: > Strictly speaking I think you should use =0=0=$color[bold]}, that may be > why strange things are getting highlighted in some of your attempts. I > get different results with =0=0= vs ===. Doesn't do anything for me. Could you please try the following? highlights='${PREFIX:+=(#b)${PREFIX:q:t}(?)*=0=1}':'=(#b)(?)*=0=1' zstyle -e ':completion:*' list-colors "reply=(\"$highlights\")" unset highlights and try touch filea touch fileb ls ./ ls ./file ls ./ and report what happens? In the first ls, the first character is highlighted. In the second, [ab] should be highlighted. In the third, the '=(#b)(?)*=0=1' expression fails, and matches [ab] instead of [f]. You can also try this afterwards: highlights='=(#b)(?)*=0=1' zstyle -e ':completion:*' list-colors "reply=(\"$highlights\")" unset highlights and it will still match [ab]. Can you replicate this issue?