Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: issues when coloring only descriptions in menu list
- X-seq: zsh-users 22675
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: issues when coloring only descriptions in menu list
- Date: Mon, 17 Apr 2017 11:52:58 -0700
- 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==
- In-reply-to: <28ECE9C6-6C9F-4707-9295-790E89C16C1B@gmx.de>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <28ECE9C6-6C9F-4707-9295-790E89C16C1B@gmx.de>
On Apr 17, 7:02pm, apfelsinenhain@xxxxxx 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 -<tab>` WILL show color
} - `a --<tab>` 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".
Messages sorted by:
Reverse Date,
Date,
Thread,
Author