zsh-users / zsh-history-substring-search

🐠 ZSH port of Fish history search (up arrow)
2.61k stars 156 forks source link

integrate `history-substring-search-down` with existing widget #136

Open blueray453 opened 2 years ago

blueray453 commented 2 years ago

My current widget associated with downkey looks like the following:

down-line-or-select() { if [[ $RBUFFER == $'\n' ]]; then zle down-line else zle menu-select -w fi }

zle -N down-line-or-select bindkey $terminfo[kcud1] down-line-or-select # down arrow

How can I integrate history-substring-search-down with this?