(bugfix): fix org-roam date functions filename format (#349)

Previously the filename was not used in the capture template.
This commit is contained in:
Jethro Kuan 2020-03-24 11:47:40 +08:00 committed by GitHub
parent 23a8b0d722
commit 4b6f580375
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1095,10 +1095,11 @@ INFO is an alist containing additional information."
(let ((org-roam-capture-templates (list (list "d" "daily" 'plain (list 'function #'org-roam--capture-get-point)
""
:immediate-finish t
:file-name "${title}"
:file-name "${filename}"
:head "#+TITLE: ${title}")))
(org-roam--capture-context 'title)
(org-roam--capture-info (list (cons 'title title))))
(org-roam--capture-info (list (cons 'title title)
(cons 'filename filename))))
(add-hook 'org-capture-after-finalize-hook #'org-roam--capture-find-file-h)
(org-roam-capture)))))