(fix): protocol: set org-capture-link-is-already-stored (#1921)

Closes #1920
This commit is contained in:
Tianshu Wang
2021-10-27 21:28:01 +08:00
committed by GitHub
parent 2c75b194d8
commit d0fd2c6959

View File

@ -141,12 +141,13 @@ It opens or creates a note with the given ref.
(plist-get info :ref))) (plist-get info :ref)))
:initial (or (plist-get info :body) "")) :initial (or (plist-get info :body) ""))
(raise-frame) (raise-frame)
(org-roam-capture- (let ((org-capture-link-is-already-stored t))
:keys (plist-get info :template) (org-roam-capture-
:node (org-roam-node-create :title (plist-get info :title)) :keys (plist-get info :template)
:info (list :ref (plist-get info :ref) :node (org-roam-node-create :title (plist-get info :title))
:body (plist-get info :body)) :info (list :ref (plist-get info :ref)
:templates org-roam-capture-ref-templates) :body (plist-get info :body))
:templates org-roam-capture-ref-templates))
nil) nil)
(defun org-roam-protocol-open-node (info) (defun org-roam-protocol-open-node (info)