mirror of
https://github.com/protesilaos/denote.git
synced 2026-09-10 07:16:20 -04:00
Simplify denote-find-backlink
This commit is contained in:
parent
81e529d8f3
commit
266207d8b9
10
denote.el
10
denote.el
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue