Add: tools/eshell: additional familiar readline bindings

This commit is contained in:
Benjamin Andresen 2017-07-21 17:07:17 +02:00
parent 22c9e2350d
commit 279cea5b08

View file

@ -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