diff --git a/src/shell/scripts/omp.zsh b/src/shell/scripts/omp.zsh index 9026884b..e2754089 100644 --- a/src/shell/scripts/omp.zsh +++ b/src/shell/scripts/omp.zsh @@ -112,6 +112,13 @@ if [[ "::TRANSIENT::" = "true" ]]; then # https://github.com/JanDeDobbeleer/oh-my-posh/discussions/2617#discussioncomment-3911044 bindkey '^[[F' end-of-line bindkey '^[[H' beginning-of-line + _widgets=$(zle -la) + if [[ -n "${_widgets[(r)down-line-or-beginning-search]}" ]]; then + bindkey '^[[B' down-line-or-beginning-search + fi + if [[ -n "${_widgets[(r)up-line-or-beginning-search]}" ]]; then + bindkey '^[[B' up-line-or-beginning-search + fi fi # legacy functions for backwards compatibility