-
-
Notifications
You must be signed in to change notification settings - Fork 583
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
Custom key bindings #193
Comments
I just found this and it seems awesome, but I wanted to customize the bindings too. I'm using zsh, and in the zsh setup the section that binds the keys is guarded by the For my case, I just wanted to disable the arrows but still use Ctrl-R, so I put this in my
|
I'm using this issue as the main issue for all "custom key bindings", whether that is inside the search TUI or from the shell |
This enabled the Kitty Keyboard Protocol Read more here: https://sw.kovidgoyal.net/kitty/keyboard-protocol/ No change on unsupported terminals, but means in the future we can be more creative with keybinding depending on terminal. Tested on Alacritty and events come through with all modifiers supported. Will be useful for #193
This enabled the Kitty Keyboard Protocol Read more here: https://sw.kovidgoyal.net/kitty/keyboard-protocol/ No change on unsupported terminals, but means in the future we can be more creative with keybinding depending on terminal. Tested on Alacritty and events come through with all modifiers supported. Will be useful for #193
This enabled the Kitty Keyboard Protocol Read more here: https://sw.kovidgoyal.net/kitty/keyboard-protocol/ No change on unsupported terminals, but means in the future we can be more creative with keybinding depending on terminal. Tested on Alacritty and events come through with all modifiers supported. Will be useful for #193
This enabled the Kitty Keyboard Protocol Read more here: https://sw.kovidgoyal.net/kitty/keyboard-protocol/ No change on unsupported terminals, but means in the future we can be more creative with keybinding depending on terminal. Tested on Alacritty and events come through with all modifiers supported. Will be useful for #193
This issue has been mentioned on Atuin Community. There might be relevant details there: |
This issue has been mentioned on Atuin Community. There might be relevant details there: https://forum.atuin.sh/t/command-inspector-design-layout/187/8 |
Looking for old commands through ctrl-r I might often accept the command as is, but using the up key I'll almost always want to edit it. When editing a command, I'll almost always want to move the cursor (home or left key) or try to delete something (backspace); this patch is just something to get a feeling of how that'd be and confirm that'd be useful as a feature (could be an option, or wait for atuinsh#193) However just custom key bindings isn't enough: when exiting through the home key you'd want to go to the begining of the line. This is easy enough to do the same way we're doing the enter_accept code: just pass some position argument with the command back for shells to parse (only implemented bash in this poc) I'd be tempted to be greedy and also want to emulate stuff like alt-left/^W etc but that'd require computing the exact position and passing an exact position to handle in each shells instead of the beginning of line token I've used here, so that'll wait for more feedback -- I'm also still in a 'trying atuin out' phase so I might just drop this all tomorrow for all I know... so: - what do you think of having such a feature? - how do you want to go about differentiating this from editing the search query? honestly I don't think I'll ever edit the search query in up mode, but in ctrl-r mode I might miss the backspace key..
In addition to switching the custom key bindings, I'd really like to edit the key binding of the UI. More specifially, I'd like to have the Edit: found the |
This issue has been mentioned on Atuin Community. There might be relevant details there: https://forum.atuin.sh/t/is-it-possible-to-add-keybinds/294/3 |
This issue has been mentioned on Atuin Community. There might be relevant details there: |
Thanks man, I almost thought there is no way to change this default behavior. Made a pull request to put it in a more visible place PR. |
So this can be closed? |
I'm using this and liking it. Thank you!
Just for the record, I'd like to use different key bindings than the default arrows.
The text was updated successfully, but these errors were encountered: