Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Completion lists



Bart Schaefer <schaefer <at> 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 ./<TAB>

ls ./file<TAB>

ls ./<TAB>

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?




Messages sorted by: Reverse Date, Date, Thread, Author