From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7401 invoked by alias); 17 Apr 2017 18:52:35 -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: 22675 Received: (qmail 3154 invoked from network); 17 Apr 2017 18:52:35 -0000 X-Qmail-Scanner-Diagnostics: from mail-vk0-f41.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.213.41):SA:0(0.5/5.0):. Processed in 1.178069 secs); 17 Apr 2017 18:52:35 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.5 required=5.0 tests=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RCVD_IN_SORBS_SPAM,SPF_PASS, T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.213.41 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=ogXOwGWicC2STw4/0s9zDnbF2xoOK/UAWKFC5Xr+PO4=; b=jpZFm43WoAra3pJS8D3XZRIUgD3K9ivM9pXxjdyLiUOyYSeQWb2ro1yU4zgx3FbitN MaAAIsZih4mQaJdetEqPbT4cbDgB7KPXxO/i9NiRa04BQ2fYT9vHt7B1CHLLXSMCnsFo b2MVTccrHNmsFdrBSoao1r0alFIGZKaxxyHMKK666Nd0aYqccvOcMocz//WoYzZx0Xc3 2teKRRq5FF2L1mIzd1Iz94K17MwGp6v7YbfbT3jP8h5DfLzGWyqzt4wExUFMu2Rk/Lck pR04b3MMhlIFaFwJ7HPfw6Pt3CssY1VW3vbcmpVFf2KWx8QXYXBgdqX7Bo3022J18T0W +Gow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=ogXOwGWicC2STw4/0s9zDnbF2xoOK/UAWKFC5Xr+PO4=; b=qyjZVNoQUDxmKmK/MQztdUolEP0ddvOMahv2sQjqbRxOHJeV0sEYsZ3onhZg88GKWJ 1RSofWJV+VqgGE4DaWOAips7nmWTRlxZrSMWwGoXR5xPxiaXNOB/PWjBQXFo1UluyYOm WBDaQ5RAX3AIE3IWVBFzM9kptbUQkiSdmzEWWjHDmZdJQEOoSS9oXV6AvP77EZLmQEsB 0RxPAo3lsn5SHVHA/pg8Koz1KRWnx27+08OF73b5Vpc2oGmzQiQf2pPmrXFtwdY4jFjY vU2LXq+foqiImr380aFQGhb10rdlHOMKWUs86KTKCfQuhy4l3kMxgOfBOQKDLrEubcox OOuw== X-Gm-Message-State: AN3rC/41ltDJ7sf5fNz0/BwYpADnSIJfvs2PNh0wVjWh3ZaRFwj3NjNN UbwqwdxlPIVxyYwF X-Received: by 10.31.204.135 with SMTP id c129mr6552409vkg.157.1492455147717; Mon, 17 Apr 2017 11:52:27 -0700 (PDT) From: Bart Schaefer Message-Id: <170417115258.ZM24732@torch.brasslantern.com> Date: Mon, 17 Apr 2017 11:52:58 -0700 In-Reply-To: <28ECE9C6-6C9F-4707-9295-790E89C16C1B@gmx.de> Comments: In reply to apfelsinenhain@gmx.de "issues when coloring only descriptions in menu list" (Apr 17, 7:02pm) References: <28ECE9C6-6C9F-4707-9295-790E89C16C1B@gmx.de> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: issues when coloring only descriptions in menu list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Apr 17, 7:02pm, apfelsinenhain@gmx.de wrote: } } I wanted to have a different colour for the per-match descriptions in } the menu list, but I can't get it to work in all cases. } } > zstyle ':completion:*' list-separator "XX" } > zstyle ':completion:*:default' list-colors '=XX*=31' [...] } - `a -` WILL show color } - `a --` will NOT show color I'm puzzled why the FIRST of those cases works, because I would expect you to need this: zstyle ':completion:*:default' list-colors '=(#b)*(XX*)=0=31' which does work for both cases. Something about having both --first and -f as matches is causing the "display string" against which the pattern is compared to start only after the two columns of matches, whereas when there is only a single column of matches each full line becomes one "display string".