Make C-c {h,j,k,l} eshell keybinds evil-only

The h,j,k,l paradigm is distinctly vim's, and should not be bound for
vanilla users, so now it's only available to evil users.

Also, since C-c l is the vanilla localleader prefix, this causes "Key
sequence C-c l b starts with non-prefix key C-c l" errors.

Fixes #3224
This commit is contained in:
Henrik Lissner 2020-05-26 13:04:10 -04:00
parent cb016f21be
commit 2d3eab7a35
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -137,6 +137,10 @@ You should use `set-eshell-alias!' to change this.")
:ni "C-j" #'eshell-next-matching-input-from-input :ni "C-j" #'eshell-next-matching-input-from-input
:ni "C-k" #'eshell-previous-matching-input-from-input :ni "C-k" #'eshell-previous-matching-input-from-input
:ig "C-d" #'+eshell/quit-or-delete-char :ig "C-d" #'+eshell/quit-or-delete-char
:i "C-c h" #'evil-window-left
:i "C-c j" #'evil-window-down
:i "C-c k" #'evil-window-up
:i "C-c l" #'evil-window-right
"C-s" #'+eshell/search-history "C-s" #'+eshell/search-history
;; Emacs bindings ;; Emacs bindings
"C-e" #'end-of-line "C-e" #'end-of-line
@ -144,10 +148,6 @@ You should use `set-eshell-alias!' to change this.")
"C-c s" #'+eshell/split-below "C-c s" #'+eshell/split-below
"C-c v" #'+eshell/split-right "C-c v" #'+eshell/split-right
"C-c x" #'+eshell/kill-and-close "C-c x" #'+eshell/kill-and-close
"C-c h" #'windmove-left
"C-c j" #'windmove-down
"C-c k" #'windmove-up
"C-c l" #'windmove-right
[remap split-window-below] #'+eshell/split-below [remap split-window-below] #'+eshell/split-below
[remap split-window-right] #'+eshell/split-right [remap split-window-right] #'+eshell/split-right
[remap doom/backward-to-bol-or-indent] #'eshell-bol [remap doom/backward-to-bol-or-indent] #'eshell-bol