-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Update fish_vi_key_bindings.fish #7908
Conversation
add bindings for undo and redo
These are already bound to history-search-backward/forward: fish-shell/share/functions/fish_vi_key_bindings.fish Lines 104 to 105 in 783736c
Given that undo is also not bound in readline's vi-mode I prefer not to change the default here. Sorry! |
In readline 8.1, |
I think it makes sense to do the same; the history search one is not a big loss given that It doesn't feel nice: after typing I also tried binding undo to |
In that case, we should however remove the previous bindings. |
What about binding previous ones to |
A vi-bindings user would have to decide that. I don't know what makes sense here. (Also note that my bash with readline 8.1 does not have "u" bound to vi-undo - |
I just tried, |
Doesn't happen for me. |
Ah, no |
The |
Since |
@xiruizhao GitHub doesn't allow to reopen after a force push, but I'll cherry-pick your commit and add a changelog entry. |
It would be actually nice to undo insertions/paste. |
That's f66f999 from https://github.com/xiruizhao/fish-shell/tree/patch-1 I take it? |
Sorry for the delay, cherry-picked as 8bbb06b |
Description
add bindings for undo and redo
TODOs: