-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE #752
Comments
Also happens on Arch |
setting |
Problem seems to be that when It's likely more robust to use the |
If ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE was something like `fg=7`, when adding it to `region_highlight`, it would be replaced with `fg=white` implicitly. This means that the entry is not removed in _zsh_autosuggest_highlight_reset and the suggestion highlighting remains. This uses the ZSH 5.9 `memo` feature which allows us to tag entries in region_highlight and remove entry by tag instead of by exact contents. Fixes zsh-users#752 Ref: https://zsh.sourceforge.io/Doc/Release/Zsh-Line-Editor.html#Zle-Widgets
Describe the bug
let's assume that we want to type ls -lha ~/Desktop
if I type the whole command then everything works as expected, but if I type "ls -lh" and then accept the suggestion, everything after "ls -lh" is going to have the suggestions color (Greyed out or whatever color I choose).
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=4'
Desktop
MacOS Sonoma
The text was updated successfully, but these errors were encountered: