feature/evil: improve bf771dcb
This commit is contained in:
parent
de40ccd361
commit
ff2f30f9b4
2 changed files with 6 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue