mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix #4882: ffap lookup handler triggers twice
Also, fall back to counsel-file-jump before ffap.
This commit is contained in:
@ -262,7 +262,8 @@ current buffer."
|
||||
"Uses `find-file-at-point' to read file at point."
|
||||
(require 'ffap)
|
||||
(when (ffap-guesser)
|
||||
(find-file-at-point)))
|
||||
(find-file-at-point)
|
||||
t))
|
||||
|
||||
(defun +lookup-bug-reference-backend-fn (_identifier)
|
||||
"Searches for a bug reference in user/repo#123 or #123 format and opens it in
|
||||
@ -369,7 +370,11 @@ Otherwise, falls back on `find-file-at-point'."
|
||||
|
||||
((stringp path) (find-file-at-point path))
|
||||
|
||||
((call-interactively #'find-file-at-point))))
|
||||
((featurep! :completion ivy)
|
||||
(counsel-file-jump (thing-at-point 'filename t)
|
||||
(doom-project-root)))
|
||||
|
||||
((ffap-prompter (thing-at-point 'filename t)))))
|
||||
|
||||
|
||||
;;
|
||||
|
Reference in New Issue
Block a user