From f62c00ea7370a1c8b04056a4ae6b963f8c6aa7e5 Mon Sep 17 00:00:00 2001 From: Jethro Kuan Date: Sat, 17 Apr 2021 18:45:32 +0800 Subject: [PATCH] fix org-roam-protocol ref capture --- org-roam-protocol.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/org-roam-protocol.el b/org-roam-protocol.el index 009a591..343305d 100644 --- a/org-roam-protocol.el +++ b/org-roam-protocol.el @@ -72,13 +72,12 @@ It opens or creates a note with the given ref. :annotation (org-link-make-string (plist-get info :ref) (or (plist-get info :title) (plist-get info :ref))) - :initial (or (plist-get info :body) - "")) + :initial (or (plist-get info :body) "")) (raise-frame) (org-roam-capture- :keys (plist-get info :template) - :info (list :node (org-roam-node-create :title (plist-get info :title)) - :ref (plist-get info :ref) + :node (org-roam-node-create :title (plist-get info :title)) + :info (list :ref (plist-get info :ref) :body (plist-get info :body)) :props (list :ref (plist-get info :ref)) :templates org-roam-capture-ref-templates)