mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 15:37:59 +08:00
vi mode: bind u/C-r to undo/redo in place of history search (#7908)
This commit is contained in:
parent
5750351210
commit
8bbb06bf5c
|
@ -40,6 +40,7 @@ Interactive improvements
|
|||
New or improved bindings
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
- Pasting in Vi mode puts text in the right place in normal mode (:issue:`7847`).
|
||||
- Vi mode's ``u`` is bound to ``undo`` instead of ``history-search-backward``, following GNU readline's behavior. Similarly, ``C-r`` is bound to ``redo`` instead of ``history-search-backward``, following Vim (#7908).
|
||||
|
||||
Improved prompts
|
||||
^^^^^^^^^^^^^^^^
|
||||
|
|
|
@ -101,8 +101,8 @@ function fish_vi_key_bindings --description 'vi-like key bindings for fish'
|
|||
bind -s --preset $key beginning-of-line
|
||||
end
|
||||
|
||||
bind -s --preset u history-search-backward
|
||||
bind -s --preset \cr history-search-forward
|
||||
bind -s --preset u undo
|
||||
bind -s --preset \cr redo
|
||||
|
||||
bind -s --preset [ history-token-search-backward
|
||||
bind -s --preset ] history-token-search-forward
|
||||
|
|
Loading…
Reference in New Issue
Block a user