feat(org-roam): add file tag dialog in capture templates

This commit is contained in:
Kiana Sheibani 2026-02-14 18:49:18 -05:00
parent 48fc692361
commit 3cc3479741
Signed by: toki
GPG key ID: 6CB106C25E86A9F7

View file

@ -3737,7 +3737,10 @@ With those variables created, we can define our templates.
(setq org-roam-capture-default-template (setq org-roam-capture-default-template
'("d" "Default" plain "" '("d" "Default" plain ""
:target (file+head "${file-maybe-dir}" :target (file+head "${file-maybe-dir}"
"#+title: ${title}") "#+title: ${title}
%(and-let* ((tags (org-fast-tag-selection nil nil org-current-tag-alist))
((not (string-empty-p tags))))
(concat \"#+filetags: :\" tags \":\"))")
:unnarrowed t :unnarrowed t
:immediate-finish t) :immediate-finish t)
org-roam-dailies-capture-default-template org-roam-dailies-capture-default-template
@ -3750,7 +3753,10 @@ With those variables created, we can define our templates.
(setq org-roam-capture-templates (setq org-roam-capture-templates
'(("f" "Standalone file" plain "" '(("f" "Standalone file" plain ""
:target (file+head "${file-maybe-dir}" :target (file+head "${file-maybe-dir}"
"#+title: ${title}") "#+title: ${title}
%(and-let* ((tags (org-fast-tag-selection nil nil org-current-tag-alist))
((not (string-empty-p tags))))
(concat \"#+filetags: :\" tags \":\"))")
:unnarrowed t) :unnarrowed t)
("n" "Bibliography note" plain "" ("n" "Bibliography note" plain ""
:target :target