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

Re: widget special PREFIX variable and cursor position with complete_in_word



Yuri D'Elia wrote:
> Yes, but in the following case:
> 
> mkdir x
> touch x/y x/z
> ls x/<TAB>
> 
> the completion list for me is:
> 
> y z

I intentionally prevented it from highlighting the first (or only)
character. As I said in the first message, it seems fairly pointless.
The underlining doesn't make the completion list easier to read quickly
so it needs to be useful. It also isn't ideal when you get an underlined
space as that looks like an underscore.

You can get it back with:
    ZLS_COLORS+=":=(#i)${prefix//?/(}${prefix//(#m)?/$MATCH:q|)}(#b)(?|)*==4"
And remove the [[ -n $prefix ]] test.

Oliver



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