feature/evil: improve bf771dcb

This commit is contained in:
Henrik Lissner 2018-03-18 21:54:03 -04:00
parent de40ccd361
commit ff2f30f9b4
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 6 additions and 3 deletions

View file

@ -164,8 +164,6 @@ NOTE This may need to be updated frequently, to meet changes upstream (in
counsel-rg)." counsel-rg)."
(if (< (length string) 1) ; <-- modified the character limit (if (< (length string) 1) ; <-- modified the character limit
(counsel-more-chars 1) ; <-- (counsel-more-chars 1) ; <--
(when (and (featurep 'evil) evil-mode)
(evil-set-jump))
(let ((default-directory (ivy-state-directory ivy-last)) (let ((default-directory (ivy-state-directory ivy-last))
(regex (counsel-unquote-regex-parens (regex (counsel-unquote-regex-parens
(setq ivy--old-re (setq ivy--old-re

View file

@ -152,7 +152,12 @@
(evil-set-command-properties (evil-set-command-properties
'+evil:align :move-point t :ex-arg 'buffer-match :ex-bang t :evil-mc t :keep-visual t :suppress-operator t) '+evil:align :move-point t :ex-arg 'buffer-match :ex-bang t :evil-mc t :keep-visual t :suppress-operator t)
(evil-set-command-properties (evil-set-command-properties
'+evil:mc :move-point nil :ex-arg 'global-match :ex-bang t :evil-mc t)) '+evil:mc :move-point nil :ex-arg 'global-match :ex-bang t :evil-mc t)
;; Ensure jump points are created
(defun +evil*set-jump (&rest _)
(evil-set-jump))
(advice-add #'counsel-git-grep-action :before #'+evil*set-jump))
;; ;;