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.
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
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.
I don’t think :if-new is meant to be used “in addition” to :target – the former is the replacement of the latter and does not mean “If the new note is being created, use A; if not, use target”. I don’t know why two stars didn’t work, though.
That did work - thank you very much.
I didn’t realize that :if-new and :target are not meant to be used together. I had interpreted it to mean exactly what you said. I didn’t realize that :target had superseded :if-new.
If that’s the case should we use :if-new instead of :target? But then, in your examples in this thread, you use :target. I am confused by your statement. Also, I am having trouble in understanding the functionality-wise difference between :if-new and :target.
I think this would have been a mis-statement on my part. My understanding is that they function in the same way, but :target replaces :if-new. I use :target. I believe you can confirm which is the current by looking at the doc string of org-roam-templates.