(bugfix): fix org-roam date functions filename format (#349)
Previously the filename was not used in the capture template.
This commit is contained in:
parent
23a8b0d722
commit
4b6f580375
1 changed files with 3 additions and 2 deletions
|
@ -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)))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue