fix org-roam-protocol ref capture

This commit is contained in:
Jethro Kuan
2021-04-17 18:45:32 +08:00
parent 597d3c6241
commit f62c00ea73

View File

@ -72,13 +72,12 @@ It opens or creates a note with the given ref.
:annotation (org-link-make-string (plist-get info :ref) :annotation (org-link-make-string (plist-get info :ref)
(or (plist-get info :title) (or (plist-get info :title)
(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- (org-roam-capture-
:keys (plist-get info :template) :keys (plist-get info :template)
:info (list :node (org-roam-node-create :title (plist-get info :title)) :node (org-roam-node-create :title (plist-get info :title))
:ref (plist-get info :ref) :info (list :ref (plist-get info :ref)
:body (plist-get info :body)) :body (plist-get info :body))
:props (list :ref (plist-get info :ref)) :props (list :ref (plist-get info :ref))
:templates org-roam-capture-ref-templates) :templates org-roam-capture-ref-templates)