Simplify denote-find-backlink

This commit is contained in:
Protesilaos Stavrou 2025-04-28 17:23:44 +03:00
parent 81e529d8f3
commit 266207d8b9
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA

View file

@ -5511,12 +5511,10 @@ Also see `denote-link-return-links'."
Alo see `denote-find-link'."
(declare (interactive-only t))
(interactive)
(find-file
(denote-get-path-by-id
(denote-extract-id-from-string
(denote-select-linked-file-prompt
(or (denote-link-return-backlinks)
(user-error "No backlinks found")))))))
(when-let* ((links (or (denote-link-return-backlinks)
(user-error "No backlinks found")))
(selected (denote-select-linked-file-prompt links)))
(find-file selected)))
;;;;;; Query links