[breaking] update org-capture templates syntax

This commit is contained in:
Jethro Kuan
2021-04-12 22:37:31 +08:00
parent a1710b41b3
commit eef1ed2873
2 changed files with 71 additions and 96 deletions

View File

@ -64,8 +64,8 @@
(list (list :key "d"
:desc "default"
:body "* %?"
:file-path (concat org-roam-dailies-directory "%<%Y-%m-%d>")
:head "#+title: %<%Y-%m-%d>\n"))
:if-new `(file+head ,(concat org-roam-dailies-directory "%<%Y-%m-%d>.org")
"#+title: %<%Y-%m-%d>\n")))
"Capture templates for daily-notes in Org-roam."
:group 'org-roam
:type
@ -99,7 +99,7 @@ If FILE is not specified, use the current buffer's file-path."
When GOTO is non-nil, go the note without creating an entry."
(org-roam-capture- :goto (when goto '(4))
:info (list :node (org-roam-node-create))
:node (org-roam-node-create)
:templates org-roam-dailies-capture-templates
:props (list :default-time time)))