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
feat: add common default keybindings #719
feat: add common default keybindings #719
Conversation
7e4dd30
to
b7e7b97
Compare
ebacfb8
to
9776be3
Compare
9776be3
to
248f7de
Compare
I think it would be beneficial if this behaved in the same way as bash and zsh. The differences I see is that they always move to the beginning/end of the next word with ctrl-left/right. So with e.g. Another difference is that (I'm not affiliated with atuin btw, so these are just my personal opinions). I also notice that if I press ctrl-right or ctrl-delete on an empty prompt, atuin panics with this branch. |
248f7de
to
5722687
Compare
Thanks for testing. Should be fixed now. I added a test case for that.
I made the word jumping action identical to Sublime Text, which is what I'm used to. In fact, I configured my Zsh line editor to behave the same way. I use I tried your example of I think word jumping behavior is up to personal preference. It makes sense to add some configuration option for this. Would a configurable |
Ah, right, emacs-forward/backward-word and vi-forward/backward-word behave differently in zsh and none of them are the default. I think bash behaves the way I said by default though. I think it would make sense to stick close to the default behavior of common shells, since this is a tool for shell history. I'll defer to the maintainers here to decide this and to decide whether a configuration option should be added. |
We already have a mechanism for deleting words: Ctrl-W. I've just tested it and it treats As I don't use this feature in any shell and I'm not an emacs/vim keybinding user I can't really comment on which behaviour works best here |
There doesn't really seem to be an obvious answer, so I think going for the default bash behaviour is the best option - I imagine most people will be used to this! Otherwise, making things configurable would be 💯 |
5722687
to
3bb70e1
Compare
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
I added configurable Hope this matches your expectations of Emacs behavior. Please let me know if it's still incorrect in some way. |
3bb70e1
to
b90a4ef
Compare
f72990f
to
0236b2f
Compare
0236b2f
to
cbbde13
Compare
@ellie Sorry about the nag but have time to look at this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy for this to go in, thank you for the work! 🚀 And apologies for the slower review :/
For [Feature Request] Custom keyboard shortcuts · Issue #610 · ellie/atuin.