Add better-jumper
Replaces evil's jumplist; makes its functionality available for non evil users.
This commit is contained in:
parent
b189254050
commit
a4c5396558
11 changed files with 55 additions and 25 deletions
|
@ -143,7 +143,9 @@ be negative.")
|
|||
(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)
|
||||
;; Recenter after jumping to match
|
||||
(advice-add #'helm-ag--find-file-action :after-while #'doom*recenter))
|
||||
(advice-add #'helm-ag--find-file-action :after-while #'doom*recenter)
|
||||
;; And record position before jumping
|
||||
(advice-add #'helm-ag--find-file-action :around #'doom*set-jump-maybe))
|
||||
|
||||
|
||||
;; `helm-bookmark'
|
||||
|
|
|
@ -161,6 +161,9 @@ immediately runs it on the current candidate (ending the ivy session)."
|
|||
|
||||
(add-to-list 'swiper-font-lock-exclude #'+doom-dashboard-mode nil #'eq)
|
||||
|
||||
;; Record in jumplist when opening files via counsel-{ag,rg,pt,git-grep}
|
||||
(add-hook 'counsel-grep-post-action-hook #'better-jumper-set-jump)
|
||||
|
||||
;; Factories
|
||||
(defun +ivy-action-reloading (cmd)
|
||||
(lambda (x)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue