completion/helm: fix evil keybinds in helm

Evil-mode was disabled in the minibuffer due to odd behavior, causing
all helm's evilified keybinds to be inaccessible.
This commit is contained in:
Henrik Lissner 2018-07-30 02:53:17 +02:00
parent 14f4e4384a
commit fb233bd37d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -190,56 +190,28 @@ If you want to already use git-grep or grep, set this to nil.")
(map! (:after helm (map! (:after helm
:map helm-map :map helm-map
:ni "C-S-p" #'helm-previous-source "C-S-p" #'helm-previous-source
:ni "C-S-n" #'helm-next-source "C-S-n" #'helm-next-source
:ni "C-l" #'helm-execute-persistent-action "C-l" #'helm-execute-persistent-action
:ni "C-j" #'helm-next-line "C-j" #'helm-next-line
:ni "C-k" #'helm-previous-line "C-k" #'helm-previous-line
:ni "C-f" #'helm-next-page "C-f" #'helm-next-page
:ni "C-b" #'helm-previous-page "C-u" #'helm-previous-page
:n [tab] #'helm-select-action ; TODO: Ivy has "ga". [tab] #'helm-select-action)
:n "[" #'helm-previous-source
:n "]" #'helm-next-source
:n "gk" #'helm-previous-source
:n "gj" #'helm-next-source
:n "(" #'helm-prev-visible-mark
:n ")" #'helm-next-visible-mark
:n "j" #'helm-next-line
:n "k" #'helm-previous-line
:n "gg" #'helm-beginning-of-buffer
:n "G" #'helm-end-of-buffer
:n "/" #'helm-quit-and-find-file
:n "gr" #'helm-refresh
:n "yp" #'helm-yank-selection
:n "yP" #'helm-copy-to-buffer
:n "yy" #'helm-kill-selection-and-quit)
(:after helm-files (:after helm-files
:map (helm-find-files-map helm-read-file-map) :map (helm-find-files-map helm-read-file-map)
:n "go" #'helm-ff-run-switch-other-window [M-return] #'helm-ff-run-switch-other-window
:n "/" #'helm-ff-run-find-sh-command "M-h" #'helm-find-files-up-one-level)
:ni "M-<return>" #'helm-ff-run-switch-other-window
:ni "M-h" #'helm-find-files-up-one-level
:n "=" #'helm-ff-run-ediff-file
:n "%" #'helm-ff-run-query-replace-regexp
:n "D" #'helm-ff-run-delete-file) ; Ivy has "D".
(:after helm-locate (:after helm-locate
:map helm-generic-files-map :map helm-generic-files-map
:n "go" #'helm-ff-run-switch-other-window "S-<return>" #'helm-ff-run-switch-other-window)
:ni "S-<return>" #'helm-ff-run-switch-other-window)
(:after helm-buffers (:after helm-buffers
:map helm-buffer-map :map helm-buffer-map
:n "go" #'helm-buffer-switch-other-window [M-return] #'helm-buffer-switch-other-window
:n "gO" #'display-buffer [return] #'display-buffer)
:ni "M-<return>" #'helm-buffer-switch-other-window
:ni "<return>" #'display-buffer
:n "=" #'helm-buffer-run-ediff
:n "%" #'helm-buffer-run-query-replace-regexp
:n "D" #'helm-buffer-run-kill-persistent) ; Ivy has "D".
(:after helm-regexp (:after helm-regexp
:map helm-moccur-map :map helm-moccur-map
:n "go" #'helm-moccur-run-goto-line-ow [M-return] #'helm-moccur-run-goto-line-ow)
:ni "M-<return>" #'helm-moccur-run-goto-line-ow)
(:after helm-grep (:after helm-grep
:map helm-grep-map :map helm-grep-map
:n "go" #'helm-grep-run-other-window-action [M-return] #'helm-grep-run-other-window-action)))
:ni "M-<return>" #'helm-grep-run-other-window-action)))