mirror of
https://github.com/org-roam/org-roam
synced 2025-09-16 15:56:48 -05:00
(bugfix): fix org-roam date functions filename format (#349)
Previously the filename was not used in the capture template.
This commit is contained in:
@@ -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)
|
(let ((org-roam-capture-templates (list (list "d" "daily" 'plain (list 'function #'org-roam--capture-get-point)
|
||||||
""
|
""
|
||||||
:immediate-finish t
|
:immediate-finish t
|
||||||
:file-name "${title}"
|
:file-name "${filename}"
|
||||||
:head "#+TITLE: ${title}")))
|
:head "#+TITLE: ${title}")))
|
||||||
(org-roam--capture-context '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)
|
(add-hook 'org-capture-after-finalize-hook #'org-roam--capture-find-file-h)
|
||||||
(org-roam-capture)))))
|
(org-roam-capture)))))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user