mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 11:22:52 +08:00
Bind ctrl-g to cancel as well
Classic emacs thing and the chord is so far unused. Fixes #9484
This commit is contained in:
parent
52d2087dd3
commit
01d681067c
|
@ -363,6 +363,8 @@ To enable emacs mode, use ``fish_default_key_bindings``. This is also the defaul
|
|||
|
||||
- :kbd:`Control`\ +\ :kbd:`K` deletes from the cursor to the end of line (moving it to the :ref:`killring`).
|
||||
|
||||
- :kbd:`Escape` and :kbd:`Control`\ +\ :kbd:`G` cancel the current operation. Immediately after an unambiguous completion this undoes it.
|
||||
|
||||
- :kbd:`Alt`\ +\ :kbd:`C` capitalizes the current word.
|
||||
|
||||
- :kbd:`Alt`\ +\ :kbd:`U` makes the current word uppercase.
|
||||
|
|
|
@ -61,6 +61,7 @@ function fish_default_key_bindings -d "emacs-like key binds"
|
|||
bind --preset $argv \cf forward-char
|
||||
bind --preset $argv \cb backward-char
|
||||
bind --preset $argv \ct transpose-chars
|
||||
bind --preset $argv \cg cancel
|
||||
bind --preset $argv \c_ undo
|
||||
bind --preset $argv \cz undo
|
||||
bind --preset $argv \e/ redo
|
||||
|
|
Loading…
Reference in New Issue
Block a user