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 22676
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: issues when coloring only descriptions in menu list
- Date: Mon, 17 Apr 2017 13:12:02 -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=2hr3nGACdMcCmwgqaHy+/gx7wL9PjotdWQ8DaGnwXec=; b=nEn10C+2H5nwFYUr7EnhHXGCMaAlJrVBjga0xo/LSCSqeh0tmj3mFbXIrzSI08SpOu duTcFAae62sVbMY9TfBHvK65FQCqsyedR8OfHB6iXWGzfyQLPE8ZDh4fGM1H+xGWJUWp e99Y4G30n3dDjaPHbhP5SUpHxMoVR/0mVlgHZPIKmpvO3jBOdJdz/z15BC3HyKuJmpyu fu1Gma2OJnZrMLgkRWmt634BgkwtrLXpcyPi91IvkBWCitwuNaTClpr8gOA/4VbVTO6s x0qu3M4v8fc8iRxlX+NMEbV92bqUcAh581k9+Cbc6IAfELVHd/pYJUwThZn7ClZk2x86 PQTw==
- In-reply-to: <170417115258.ZM24732@torch.brasslantern.com>
- 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> <170417115258.ZM24732@torch.brasslantern.com>
On Apr 17, 11:52am, Bart Schaefer wrote:
}
} 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'
This demonstrates what is going on:
autoload compinit && compinit -D -u
zstyle ':completion:*' list-separator "XX"
zstyle ':completion:*:default' list-colors '=(#b)*(XX*)(?)==31=33;40'
_a () {
_arguments \
{--first,-f}'[first should be red]' \
'--barXXfoo[watch what happens here]' \
'--second[second should be red]'
}
compdef _a a
Now try TAB after each of "a -" and "a --" and watch where the black
background appears.
I think this has something to do with padding the columns when there
is more than one match to put on the same line.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author