I am trying to debug a dailies capture template. Here is what I am trying to achieve, I want to create a Dailies template that looks like below when the dailies note doesn’t exist. This is working for me.
#+TITLE: 2022-12-07 #+FILETAGS: daily * Focus * Tasks * Journal
When I try to capture in a note that exists, I want to add a timestamp and a second level heading below journal but that’s not working for me. Here is my setup
(setq org-roam-dailies-capture-templates '(("d" "default" entry "* %<%I:%M %p>: %?" :target (file+head "%<%Y-%m-%d>.org" "Journal") :if-new (file+head "%<%Y-%m-%d>.org" "#+TITLE: %<%Y-%m-%d>\n#+FILETAGS: daily\n\n* Focus\n\n* Tasks\n\n* Journal") :unnarrowed t)))
My assumption is that on the line
:target (file+head "%<%Y-%m-%d>.org" "Journal") , this should search for a Level 1 Heading called Journal and create a sub entry below this. , But it doesn’t do that. Here is what I get.
#+TITLE: 2022-12-07 #+FILETAGS: daily * Focus * Tasks * Journal * 01:19 PM: Let's create a timed log here.
Noticed how the time stamped entry is still at Level 1. Any hints on what I am doing wrong will really help.