-
-
Notifications
You must be signed in to change notification settings - Fork 525
Closed
Labels
[dev] bugIssues in devIssues in devbugSomething isn't workingSomething isn't workingdevissues in regards to deb branchissues in regards to deb branch
Description
Description
I'm using special keybinding for arrow up and arrow down button in my .zshrc:
bindkey "${terminfo[kcuu1]}" history-substring-search-up
bindkey "^[[A" history-substring-search-up
bindkey "${terminfo[kcud1]}" history-substring-search-down
bindkey "^[[B" history-substring-search-downBut when shell loads if I query what is binded, it will be other fucntion:
❯ bindkey "${terminfo[kcuu1]}"
"^[OA" up-line-or-beginning-searchKeybind can be set properly using completions:
❯ cat ~/.config/zsh/completions/keybindings.zsh
# Autocompletion using arrow keys (based on history)
## Arrow up
bindkey "${terminfo[kcuu1]}" history-substring-search-up
bindkey "^[[A" history-substring-search-up
## Arrow down
bindkey "${terminfo[kcud1]}" history-substring-search-down
bindkey "^[[B" history-substring-search-downThis is workaround, but it will be cool if keybinds can be set from .zshrc
Steps to Reproduce
- Install plugin zsh-history-substring-search
- Enable plugin in
user.zshplugins=( ... "zsh-history-substring-search" ... ) - Put
bindkeyto.zshrcbindkey "${terminfo[kcuu1]}" history-substring-search-up bindkey "^[[A" history-substring-search-up bindkey "${terminfo[kcud1]}" history-substring-search-down bindkey "^[[B" history-substring-search-down
- Query bindings from terminal using
bindkey "${terminfo[kcuu1]}"
Expected Behavior
.zshrc should have highest priority and override all others.
Actual Behavior
.zshrc is overriden by _load_omz_on_init() which is loaded asynchronously, and thats why workaround with completions work.
Screenshots
No response
Environment
Additional Information
No response
kRHYME7
Metadata
Metadata
Assignees
Labels
[dev] bugIssues in devIssues in devbugSomething isn't workingSomething isn't workingdevissues in regards to deb branchissues in regards to deb branch