From: Julius Plenz <julius@plenz.com>
To: zsh-workers@zsh.org
Subject: Bug: _oldlist and automatic coloring of matched
Date: Sat, 24 Apr 2010 00:28:58 +0200 [thread overview]
Message-ID: <20100423222858.GC11609@plenz.com> (raw)
Hey there,
while I recently created a new zsh configuration from scratch I
stumbled upon a bug in the _oldlist completer. (At least _oldlist
if one of the sources of the problem - other completers might behave
similarly.)
I wanted to configure Zsh not to use colors at all. So I simply didn't
set the 'list-colors' style for the default tag anywhere. This,
however, is not enough in the case of _oldlist. Consider this minimal
zshrc:
autoload -U compinit && compinit
zmodload -i zsh/complist
zstyle ':completion:*' completer _oldlist _complete
zstyle ':completion:*' menu select select=long-list
If you hit Tab the first time, the listing of filenames is not
colored. But once you hit Tab again (and the _oldlist completer comes
into play) suddenly some matches are colored.
I guess the problem is that _oldlist somehow sets the list-colors
style to '' which then causes Zsh to color the list according to the
default colors. I was, however, not able to trace the source of the
problem any further.
Cheers,
Julius
next reply other threads:[~2010-04-23 22:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-23 22:28 Julius Plenz [this message]
2010-04-24 17:35 ` Bart Schaefer
2010-04-25 21:22 ` Peter Stephenson
2010-04-26 16:21 ` Bart Schaefer
2010-04-26 17:14 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100423222858.GC11609@plenz.com \
--to=julius@plenz.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).