zsh-autosuggestions
zsh-autosuggestions copied to clipboard
Suggestions are not being cleared after not accepting
Describe the bug
The auto-suggested text is not distinguishable if not being accepted.
For instance, in the following screenshot, I entered cd temp<CR> and afterward cd<CR>. Before hitting CR in the last command, I could see "temp" in a dark gray color. As I didn't accept the suggestion, my expectation would be that the suggestion stays displayed in the same dark gray color on my terminal, which I am quite sure was the case some time ago.
Unfortunately, I had a hard time creating a reproducible minimal demo. What I recognized is, that the behavior is correct when I remove either of these lines from my config:
source $HOME/.shell/fast-syntax-Highlighting/fast-syntax-highlighting.plugin.zshZSH_AUTOSUGGEST_CLEAR_WIDGETS+=(history-beginning-search-backward-end history-beginning-search-forward-end)
I am also aware of this issue and that issue. I played around with different style configurations and installed zsh 5.9 as well. No success.
The issue also occurs on kitty and alacritty and on my NixOS box. This drives me nuts, and I have a very hard time to tackle this down.
Any help or hint is much appreciated!
For reference – my config:
- https://github.com/Allaman/dots/tree/main/dot_shell
- https://github.com/Allaman/dots/blob/main/dot_zshrc
Desktop
- OS + distribution: macOS 12.6 (Apple Silicone)
- Zsh version: 5.8.1
- Plugin version: a411ef3 (0.7.0