mirror of
https://github.com/protesilaos/denote.git
synced 2026-09-10 07:16:20 -04:00
Simplify denote-find-link
This commit is contained in:
parent
cdb44a2d31
commit
81e529d8f3
10
denote.el
10
denote.el
|
|
@ -4927,12 +4927,10 @@ Also see `denote-link-return-backlinks'."
|
|||
Also see `denote-find-backlink'."
|
||||
(declare (interactive-only t))
|
||||
(interactive)
|
||||
(find-file
|
||||
(concat
|
||||
(denote-directory)
|
||||
(denote-select-linked-file-prompt
|
||||
(or (denote-link-return-links)
|
||||
(user-error "No links found"))))))
|
||||
(when-let* ((links (or (denote-link-return-links)
|
||||
(user-error "No links found")))
|
||||
(selected (denote-select-linked-file-prompt links)))
|
||||
(find-file selected)))
|
||||
|
||||
;;;###autoload
|
||||
(defun denote-link-after-creating (&optional id-only)
|
||||
|
|
|
|||
Loading…
Reference in a new issue