Replies: 3 comments 2 replies
-
I tried modifying this file. comment some code snippets.
|
Beta Was this translation helpful? Give feedback.
-
it took me almost two days to find out that there is apparently no way to rebind builtin shortcuts because of that shitty precmd trick to bind the keys just before the prompt appears. Works only if I manually execute bindkey in prompt. What I tried: source $XDG_DATA_HOME/zinit/plugins/marlonrichert---zsh-autocomplete/zsh-autocomplete.plugin.zsh
testfunc() {
echo "test"
zle reset-prompt
}
zle -N testfunc
bindkey '\E[1;3A' testfunc # Alt-Up Zsh log:
IMHO that should be added to README to not to misguide the other people |
Beta Was this translation helpful? Give feedback.
-
I am also looking to unbind "tab" key. Unfortunately, I am not able to find a way. |
Beta Was this translation helpful? Give feedback.
-
What do you want?
Can be customized to cancel certain shortcut keys
Why do you want this?
Conflicts with other tools, e.g atuin
^r
Who else would benefit from this?
Anyone who wants to disable some of the built-in shortcuts
How should it work?
I'm using atuin as a history tool.
This uses the same
^r
shortcut as zsh-autocomplete.I had to place the
bindkey '^r' _atuin_search_widget
at the bottom of.zshrc
but when I reboot the system, press
ctrl + r
, the zsh-autocomplete history widget still appears.I'm currently only able to get
ctrl + r
, using the atuin widget, to work viasource ~/.zshrc
.Is there a more convenient way to disable some keys? Like adding environment variables, etc.
Beta Was this translation helpful? Give feedback.
All reactions