-
-
Notifications
You must be signed in to change notification settings - Fork 145
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there any way to cancel certain shortcut keys? #680
Comments
I tried modifying this file. comment some code snippets.
|
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 |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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.
The text was updated successfully, but these errors were encountered: