Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Rewrite of zsh-newuser-install (Mikael's subthread)
- X-seq: zsh-workers 48440
- From: Marlon <marlon.richert@xxxxxxxxx>
- To: Mikael Magnusson <mikachu@xxxxxxxxx>
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Rewrite of zsh-newuser-install (Mikael's subthread)
- Date: Fri, 9 Apr 2021 18:29:25 +0300
- Archived-at: <https://zsh.org/workers/48440>
- In-reply-to: <E9B97A4D-3406-449E-86FD-6CC5DFC21935@gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAHYJk3Sh8ErYyObh=nURosOnj4+bsB1WsxhOi_-e=n_1fjAQ6Q@mail.gmail.com> <E9B97A4D-3406-449E-86FD-6CC5DFC21935@gmail.com>
> On 7 Apr 2021, at 17:28, Marlon <marlon.richert@xxxxxxxxx> wrote:
>
>>> # Add some basic command line highlighting.
>>> # See http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#Character-Highlighting
>>> zle_highlight=(
>>> isearch:fg=black,bg=yellow # Matched search text
>>> paste:none # Yanked/pasted text
>>> region:bg=blue # Selected text
>>> special:fg=cyan,bold # Unprintable characters
>>> suffix:bg=blue # Auto-removable suffix inserted by completion
>>> )
>>
>> There are many colors, why use the same for the region and the suffix?
>
> Because it’s familiar from the GUI world: If text looks selected, then you expect it to be replaced when you type over it.
Another reason: Because others in this thread have told me to avoid using anything else than the 8 basic terminal colors.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author