mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 20:54:40 +08:00
parent
4f796df87c
commit
8b961a0ca8
|
@ -85,9 +85,8 @@ Interactive improvements
|
||||||
New or improved bindings
|
New or improved bindings
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
- New readline commands ``undo`` (Ctrl+_) and ``redo`` (Alt-/) can be
|
- New readline commands ``undo`` (Ctrl+_ or Ctrl+Z) and ``redo`` (Alt-/) can be used to revert
|
||||||
used to revert changes to the command line or the pager search field
|
changes to the command line or the pager search field (#6570).
|
||||||
(#6570).
|
|
||||||
- New function ``__fish_preview_current_file`` (Alt+O) opens the
|
- New function ``__fish_preview_current_file`` (Alt+O) opens the
|
||||||
current file at the cursor in a pager (#6838).
|
current file at the cursor in a pager (#6838).
|
||||||
- ``edit_command_buffer`` (Alt-E and Alt-V) passes the cursor position
|
- ``edit_command_buffer`` (Alt-E and Alt-V) passes the cursor position
|
||||||
|
|
|
@ -1478,7 +1478,7 @@ Emacs mode commands
|
||||||
|
|
||||||
- :kbd:`Alt`\ +\ :kbd:`T` transposes the last two words.
|
- :kbd:`Alt`\ +\ :kbd:`T` transposes the last two words.
|
||||||
|
|
||||||
- :kbd:`Control`\ +\ :kbd:`_` (:kbd:`Control`\ +\ :kbd:`/` on some terminals) undoes the most recent edit of the line.
|
- :kbd:`Control`\ +\ :kbd:`Z`, :kbd:`Control`\ +\ :kbd:`_` (:kbd:`Control`\ +\ :kbd:`/` on some terminals) undo the most recent edit of the line.
|
||||||
|
|
||||||
- :kbd:`Alt`\ +\ :kbd:`/` reverts the most recent undo.
|
- :kbd:`Alt`\ +\ :kbd:`/` reverts the most recent undo.
|
||||||
|
|
||||||
|
|
|
@ -80,6 +80,7 @@ function fish_default_key_bindings -d "Default (Emacs-like) key bindings for fis
|
||||||
bind --preset $argv \cb backward-char
|
bind --preset $argv \cb backward-char
|
||||||
bind --preset $argv \ct transpose-chars
|
bind --preset $argv \ct transpose-chars
|
||||||
bind --preset $argv \c_ undo
|
bind --preset $argv \c_ undo
|
||||||
|
bind --preset $argv \cz undo
|
||||||
bind --preset $argv \e/ redo
|
bind --preset $argv \e/ redo
|
||||||
bind --preset $argv \et transpose-words
|
bind --preset $argv \et transpose-words
|
||||||
bind --preset $argv \eu upcase-word
|
bind --preset $argv \eu upcase-word
|
||||||
|
|
Loading…
Reference in New Issue
Block a user