zsh-users / zsh-autosuggestions

Fish-like autosuggestions for zsh
MIT License
30.8k stars 1.85k forks source link

zsh-autosuggestions suggest `\[` if I press space as the first character in the prompt #558

Open blueray453 opened 4 years ago

blueray453 commented 4 years ago

If I press space as the first character in the prompt, it suggests \[.

If I comment out . ~/dotfiles/zsh/zsh-autosuggestions.zsh this weird behaviour goes away.

blueray453 commented 4 years ago

I think it is caused by ZSH_AUTOSUGGEST_STRATEGY=(history completion)

NICHOLAS85 commented 4 years ago

I see the same issue, I use ZSH_AUTOSUGGEST_COMPLETION_IGNORE="[[:space:]]*" to stop suggestions from appearing when the buffer is preceded by whitespace.