Add: tools/eshell: additional familiar readline bindings
This commit is contained in:
parent
22c9e2350d
commit
279cea5b08
1 changed files with 18 additions and 13 deletions
|
@ -40,19 +40,24 @@
|
||||||
"Setup eshell keybindings. This must be done in a hook because eshell
|
"Setup eshell keybindings. This must be done in a hook because eshell
|
||||||
redefines its keys every time `eshell-mode' is enabled."
|
redefines its keys every time `eshell-mode' is enabled."
|
||||||
(map! :map eshell-mode-map
|
(map! :map eshell-mode-map
|
||||||
:n "i" #'+eshell/evil-prepend-maybe
|
:n "i" #'+eshell/evil-prepend-maybe
|
||||||
:n "I" #'+eshell/evil-prepend
|
:n "I" #'+eshell/evil-prepend
|
||||||
:n "a" #'+eshell/evil-append-maybe
|
:n "a" #'+eshell/evil-append-maybe
|
||||||
:n "A" #'+eshell/evil-append
|
:n "A" #'+eshell/evil-append
|
||||||
:n "r" #'+eshell/evil-replace-maybe
|
:n "r" #'+eshell/evil-replace-maybe
|
||||||
:n "R" #'+eshell/evil-replace-state-maybe
|
:n "R" #'+eshell/evil-replace-state-maybe
|
||||||
:n "c" #'+eshell/evil-change
|
:n "c" #'+eshell/evil-change
|
||||||
:n "C" #'+eshell/evil-change-line
|
:n "C" #'+eshell/evil-change-line
|
||||||
:i "<tab>" #'eshell-pcomplete
|
:i "<tab>" #'eshell-pcomplete
|
||||||
:i "C-u" #'eshell-kill-input
|
:i "C-u" #'eshell-kill-input
|
||||||
:i "SPC" #'self-insert-command
|
:i "SPC" #'self-insert-command
|
||||||
:i "C-a" #'eshell-bol
|
:i "C-a" #'eshell-bol
|
||||||
:i "C-d" #'+eshell/quit-or-delete-char
|
:i "C-d" #'+eshell/quit-or-delete-char
|
||||||
|
:i "C-k" #'kill-line
|
||||||
|
:i "C-p" #'eshell-previous-input
|
||||||
|
:i "<up>" #'eshell-previous-input
|
||||||
|
:i "C-n" #'eshell-previous-input
|
||||||
|
:i "<down>" #'eshell-previous-input
|
||||||
:m "<return>" #'+eshell/evil-append
|
:m "<return>" #'+eshell/evil-append
|
||||||
:n [remap evil-window-split] #'+eshell/split
|
:n [remap evil-window-split] #'+eshell/split
|
||||||
:n [remap evil-window-vsplit] #'+eshell/vsplit
|
:n [remap evil-window-vsplit] #'+eshell/vsplit
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue