zsh-autosuggestions icon indicating copy to clipboard operation
zsh-autosuggestions copied to clipboard

No color after accepting suggestion when using with marlonrichert / zsh-autocomplete

Open zhou13 opened this issue 2 years ago • 3 comments

Describe the bug

To Reproduce

Steps to reproduce the behavior:

cd $(mktemp -d)
git clone --depth 1 -- https://github.com/marlonrichert/zsh-autocomplete.git
git clone --depth 1 -- https://github.com/zsh-users/zsh-autosuggestions
> .zshrc <<EOF
PS1='%# ' PS2= RPS2='%^'; setopt transientrprompt interactivecomments
source ~/zsh-autocomplete/zsh-autocomplete.plugin.zsh
source ~/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh
EOF
env -i HOME=$PWD PATH=$PATH TERM=$TERM ${TERMINFO:+TERMINFO=$TERMINFO} zsh -d
  • type ls /Users/Shared and <enter>
  • type ls /User and <right-arrow>
Screenshot 2023-02-27 at 9 10 29 AM

The bug only occurs when using with marlonrichert/zsh-autocomplete.

Expected behavior

Color are the same as if marlonrichert/zsh-autocomplete is not installed.

Desktop

  • OS + distribution: Arch Linux
  • Zsh version: 5.9
  • Plugin version: master

zhou13 avatar Feb 27 '23 17:02 zhou13

Note that when https://github.com/zdharma/fast-syntax-highlighting is installed, the color will be updated correctly.

zhou13 avatar Feb 27 '23 17:02 zhou13

I don't have marlonrichert/zsh-autocomplete installed but I observe the same issue.

The plugins I have installed are:

romkatv/powerlevel10k
zsh-users/zsh-autosuggestions
robbyrussell/oh-my-zsh path:plugins/history

Removing P10k has no impact on the issue.

Adding fast-syntax-highlighting fixes the issue for me as well

Desktop

  • OS distribution: OSX 13.3
  • Zsh version: 5.9 (x86_64-apple-darwin22.0)

moorem6 avatar Apr 17 '23 17:04 moorem6

See also https://github.com/marlonrichert/zsh-autocomplete/issues/576 for a slightly different conflict between zsh-autocomplete and zsh-autosuggestions.

raxod502 avatar Apr 30 '23 00:04 raxod502