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

Re: Rewrite of zsh-newuser-install (Mikael's subthread)



> 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