zsh-users / zsh-syntax-highlighting

Fish shell like syntax highlighting for Zsh.
github.com/zsh-users/zsh-syntax-highlighting
BSD 3-Clause "New" or "Revised" License
19.55k stars 1.32k forks source link

zsh-syntax-highlighting: unhandled ZLE widget 'history-substring-search-up' #881

Closed XXiaoA closed 2 years ago

XXiaoA commented 2 years ago

I used zinit to download zsh-history-substring-search and added the following bindkey like the document

bindkey '^[[A' history-substring-search-up

Unexpectedly, zsh threw some messages, although I never used zsh-syntax-highlighting

zsh-syntax-highlighting: unhandled ZLE widget 'history-substring-search-up'

BTW, I am using fast-syntax-highlighting

And, there is my all configuration

EDIT: According to my google results, it seems that bindkey should be put after source zsh-syntax-highlighting. However, I never use zsh-syntax-highlighting. So it pretty confuse me🤨

danielshahaf commented 2 years ago

So you're saying that zsh-syntax-highlighting runs and you don't know why? That's a bug either in zinit or in your dotfiles, not in zsh-syntax-highlighting.

Good luck.