I've skimmed some of the various issues here and I understand that there's no single way to set the keybindings up, but I think the ones included in the README are fine and shouldn't conflict with anything else.
Can we add this (or something similar) as a default?
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
# Bind up and down keys
zmodload -F zsh/terminfo +p:terminfo
if [[ -n ${terminfo[kcuu1]} && -n ${terminfo[kcud1]} ]]; then
bindkey ${terminfo[kcuu1]} history-substring-search-up
bindkey ${terminfo[kcud1]} history-substring-search-down
fi
bindkey '^P' history-substring-search-up
bindkey '^N' history-substring-search-down
bindkey -M vicmd 'k' history-substring-search-up
bindkey -M vicmd 'j' history-substring-search-down
I've skimmed some of the various issues here and I understand that there's no single way to set the keybindings up, but I think the ones included in the README are fine and shouldn't conflict with anything else.
Can we add this (or something similar) as a default?
See for https://github.com/zimfw/zimfw/issues/364#issuecomment-572713657 for some context, although it's probably not needed.