Revert "evil-helm: Add support for numeric prefix in mark commands"

This reverts commit 0aef7f5bde.

Helm has added support for numeric selection, there is no need for this anymore.
This commit is contained in:
Pierre Neidhardt 2017-12-01 10:42:15 +01:00
parent 1a1a29d7ca
commit 1c0ab22d7d
1 changed files with 1 additions and 14 deletions

View File

@ -42,18 +42,6 @@
(defvar helm-find-files-map)
(defvar helm-read-file-map)
(defun evil-helm-toggle-visible-mark-backwards (&optional args)
(interactive "p")
(evil-helm-toggle-visible-mark args t))
(defun evil-helm-toggle-visible-mark (&optional args backwards)
(interactive "p")
(unless (numberp args) (setq args 1))
(dotimes (_ (abs args))
(if (or (and (< args 0) (not backwards)) (and (> args 0) backwards))
(helm-toggle-visible-mark-backwards)
(helm-toggle-visible-mark))))
(defun evil-helm-setup ()
"Set up `evil' bindings for `helm'."
;; TODO: We should not modify helm-map in Emacs state but somehow it does not
@ -73,8 +61,7 @@
"k" 'helm-previous-line
"g" 'helm-beginning-of-buffer
"G" 'helm-end-of-buffer
(kbd "SPC") 'evil-helm-toggle-visible-mark
(kbd "S-SPC") 'evil-helm-toggle-visible-mark-backwards)
(kbd "SPC") 'helm-toggle-visible-mark)
(evil-define-key '(normal insert) helm-map
(kbd "M-j") 'helm-next-line