feat(doom): stamp :ID: (org-id-new) on captured Todo/Event templates

New items get a live org ID at capture so they're linkable as org-roam
nodes and horizon properties without a separate stamp step. Event
template also gains the TODO keyword.
This commit is contained in:
2026-09-18 12:49:05 -04:00
parent 5cd3c0590c
commit d6731cf800
2 changed files with 4 additions and 4 deletions

View File

@@ -731,7 +731,7 @@ Each line jumps to the file (org-hd-marker on the first headline)."
("ti" "Idea" entry (file+olp +org-capture-todo-file "Tasks") ("ti" "Idea" entry (file+olp +org-capture-todo-file "Tasks")
"* IDEA %? \n:PROPERTIES:\n:CREATED: %U\n:END:\n%a\n%i" :prepend t) "* IDEA %? \n:PROPERTIES:\n:CREATED: %U\n:END:\n%a\n%i" :prepend t)
("tt" "Todo" entry (file+olp +org-capture-todo-file "Tasks") ("tt" "Todo" entry (file+olp +org-capture-todo-file "Tasks")
"* TODO %? \n:PROPERTIES:\n:CREATED: %U\n:END:\n%a\n%i" :prepend t) "* TODO %? \n:PROPERTIES:\n:CREATED: %U\n:ID: %(org-id-new)\n:END:\n%a\n%i" :prepend t)
("tw" "Wait" entry (file+olp +org-capture-todo-file "Tasks") ("tw" "Wait" entry (file+olp +org-capture-todo-file "Tasks")
"* WAIT %? \n:PROPERTIES:\n:CREATED: %U\n:END:\n%a\n%i" :prepend t) "* WAIT %? \n:PROPERTIES:\n:CREATED: %U\n:END:\n%a\n%i" :prepend t)
("tp" "Task at point" entry (file+olp +org-capture-todo-file "Tasks") ("tp" "Task at point" entry (file+olp +org-capture-todo-file "Tasks")
@@ -746,7 +746,7 @@ Each line jumps to the file (org-hd-marker on the first headline)."
("w" "Question" entry (file+olp +org-capture-notes-file "Questions") ("w" "Question" entry (file+olp +org-capture-notes-file "Questions")
"* [?] %? \n:PROPERTIES:\n:CREATED: %U\n:END:\n%a\n%i") "* [?] %? \n:PROPERTIES:\n:CREATED: %U\n:END:\n%a\n%i")
("e" "Event" entry (file+olp +org-capture-todo-file "Events") ("e" "Event" entry (file+olp +org-capture-todo-file "Events")
"* %? %^t\n:PROPERTIES:\n:CREATED: %U\n:END:\n%a\n%i") "* TODO %? %^t\n:PROPERTIES:\n:CREATED: %U\n:ID: %(org-id-new)\n:END:\n%a\n%i")
;; Calendar event capture for gnus-icalendar (its insinuate appends a ;; Calendar event capture for gnus-icalendar (its insinuate appends a
;; "#" template; we declare it here so it survives independent of load order ;; "#" template; we declare it here so it survives independent of load order
;; and its name dedup-guard skips appending a duplicate). ;; and its name dedup-guard skips appending a duplicate).

View File

@@ -576,7 +576,7 @@ Each line jumps to the file (org-hd-marker on the first headline)."
("ti" "Idea" entry (file+olp +org-capture-todo-file "Tasks") ("ti" "Idea" entry (file+olp +org-capture-todo-file "Tasks")
"* IDEA %? \n:PROPERTIES:\n:CREATED: %U\n:END:\n%a\n%i" :prepend t) "* IDEA %? \n:PROPERTIES:\n:CREATED: %U\n:END:\n%a\n%i" :prepend t)
("tt" "Todo" entry (file+olp +org-capture-todo-file "Tasks") ("tt" "Todo" entry (file+olp +org-capture-todo-file "Tasks")
"* TODO %? \n:PROPERTIES:\n:CREATED: %U\n:END:\n%a\n%i" :prepend t) "* TODO %? \n:PROPERTIES:\n:CREATED: %U\n:ID: %(org-id-new)\n:END:\n%a\n%i" :prepend t)
("tw" "Wait" entry (file+olp +org-capture-todo-file "Tasks") ("tw" "Wait" entry (file+olp +org-capture-todo-file "Tasks")
"* WAIT %? \n:PROPERTIES:\n:CREATED: %U\n:END:\n%a\n%i" :prepend t) "* WAIT %? \n:PROPERTIES:\n:CREATED: %U\n:END:\n%a\n%i" :prepend t)
("tp" "Task at point" entry (file+olp +org-capture-todo-file "Tasks") ("tp" "Task at point" entry (file+olp +org-capture-todo-file "Tasks")
@@ -591,7 +591,7 @@ Each line jumps to the file (org-hd-marker on the first headline)."
("w" "Question" entry (file+olp +org-capture-notes-file "Questions") ("w" "Question" entry (file+olp +org-capture-notes-file "Questions")
"* [?] %? \n:PROPERTIES:\n:CREATED: %U\n:END:\n%a\n%i") "* [?] %? \n:PROPERTIES:\n:CREATED: %U\n:END:\n%a\n%i")
("e" "Event" entry (file+olp +org-capture-todo-file "Events") ("e" "Event" entry (file+olp +org-capture-todo-file "Events")
"* %? %^t\n:PROPERTIES:\n:CREATED: %U\n:END:\n%a\n%i") "* TODO %? %^t\n:PROPERTIES:\n:CREATED: %U\n:ID: %(org-id-new)\n:END:\n%a\n%i")
;; Calendar event capture for gnus-icalendar (its insinuate appends a ;; Calendar event capture for gnus-icalendar (its insinuate appends a
;; "#" template; we declare it here so it survives independent of load order ;; "#" template; we declare it here so it survives independent of load order
;; and its name dedup-guard skips appending a duplicate). ;; and its name dedup-guard skips appending a duplicate).