From 3cc34797411daeea00f9b4906b72910474b7ff84 Mon Sep 17 00:00:00 2001 From: Kiana Sheibani Date: Sat, 14 Feb 2026 18:49:18 -0500 Subject: [PATCH] feat(org-roam): add file tag dialog in capture templates --- config.org | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/config.org b/config.org index 34b1046..3e3d058 100644 --- a/config.org +++ b/config.org @@ -3737,7 +3737,10 @@ With those variables created, we can define our templates. (setq org-roam-capture-default-template '("d" "Default" plain "" :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 :immediate-finish t) org-roam-dailies-capture-default-template @@ -3750,7 +3753,10 @@ With those variables created, we can define our templates. (setq org-roam-capture-templates '(("f" "Standalone file" plain "" :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) ("n" "Bibliography note" plain "" :target