Recenter after project search (with counsel)

This commit is contained in:
Henrik Lissner 2020-05-08 16:14:47 -04:00
parent 42a21dffdd
commit 29e1398977
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -214,6 +214,7 @@ evil-ex-specific constructs, so we disable it solely in evil-ex."
;; Record in jumplist when opening files via counsel-{ag,rg,pt,git-grep} ;; Record in jumplist when opening files via counsel-{ag,rg,pt,git-grep}
(add-hook 'counsel-grep-post-action-hook #'better-jumper-set-jump) (add-hook 'counsel-grep-post-action-hook #'better-jumper-set-jump)
(add-hook 'counsel-grep-post-action-hook #'recenter)
(ivy-add-actions (ivy-add-actions
'counsel-rg ; also applies to `counsel-rg' 'counsel-rg ; also applies to `counsel-rg'
'(("O" +ivy-git-grep-other-window-action "open in other window"))) '(("O" +ivy-git-grep-other-window-action "open in other window")))