What I’m trying to do
I am trying to automatically create accurate Yesterday and Tomorrow links (with Templater) when creating Daily Notes in the future using the Calendar plugin.
My current template format works perfectly for creating the links for the current day:
[[<% tp.file.title("dddd, MMMM DD, yyyy", -1) %>|Yesterday]]
[[<% tp.file.title("dddd, MMMM DD, yyyy", +1) %>|Tomorrow]]
But does not work for creating future Daily Notes.
Things I have tried
My Daily Notes are automatically created with the dddd, MMMM DD, yyyy date format as the title, hence the format in the Templater function. For example, my Daily Note today has these links at the top:
[[Wednesday, January 15, 2025|Yesterday]]
[[Friday, January 17, 2025|Tomorrow]]
This is great!
However, when I use the Calendar plugin to create a Daily Note next month, for the 1st of February, this is what comes back:
[[<% tp.file.title("dddd, MMMM DD, yyyy", -1) %>|Yesterday]]
[[<% tp.file.title("dddd, MMMM DD, yyyy", +1) %>|Tomorrow]]
In the console, an error reads: “Templater Error: Template parsing error, aborting.
tp.file.title is not a function”
This is driving me crazy since it works perfectly when a daily note is automatically created, but not when I try to create on for the future.