Fix evil jumplist after jumping to ag match

helm-ag would formerly add multiple entries to the jump list. It now
only adds one, and recenters the window when jumping to an ag match.
This commit is contained in:
Henrik Lissner 2018-08-13 14:00:51 +02:00
parent b149dcffd4
commit 5714ff423a
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 14 additions and 5 deletions

View file

@ -150,7 +150,9 @@ be negative.")
(after! helm-ag
(map! :map helm-ag-edit-map :n "RET" #'compile-goto-error)
(define-key helm-ag-edit-map [remap quit-window] #'helm-ag--edit-abort)
(set-popup-rule! "^\\*helm-ag-edit" :size 0.35 :ttl 0 :quit nil))
(set-popup-rule! "^\\*helm-ag-edit" :size 0.35 :ttl 0 :quit nil)
;; Recenter after jumping to match
(advice-add #'helm-ag--find-file-action :after-while #'doom*recenter))
;; `helm-bookmark'