Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] "Open Daily Note on Startup" does not properly process Templater at startup for obsidian version v1.7.4 #237

Closed
Harimus opened this issue Oct 24, 2024 · 1 comment

Comments

@Harimus
Copy link

Harimus commented Oct 24, 2024

Hi, I recently updated my Obsidian to v1.7.4 on Ubuntu 20.04.

After the update, I noticed that my Periodic Notes Plugin started to behave weirdly. Every time I open Obsidian, it is supposed to open/create the daily notes, since I have "open daily note on startup" configured in "Daily Notes" Core Plugin. The daily note includes Templater scripts to generate the Daily note as I want.

However, the templater scripts remain unprocessed when the file is created this way.

First, I thought maybe I accidentally deleted something and there was an syntax error on Templater scripts, but after deleting the faulty daily note and opening/creating it again with command (Ctrl + P) "Daily Notes: Open today's daily Notes" The daily note was created correctly with Templater.

I'm not sure if this is Obsidian side bug, or plugin side bug (Templater or periodic-notes)..

For reference, The templater code that doesn't get processed look like these

<<[[DailyWeeklyNotes/DailyNotes/<%* if (tp.date.now("ddd", 0, tp.file.title, "YYYY-MM-DD-dddd") == "Mon") { %><% tp.date.now("YYYY/MM/YYYY-MM-DD-dddd", -3) %> | Last Friday]]<%* } else { %><% tp.date.now("YYYY/MM/YYYY-MM-DD-dddd", -1) %>| Yesterday]] <%* } %>   | [[DailyWeeklyNotes/DailyNotes/<%* if (tp.date.now("ddd", 0, tp.file.title, "YYYY-MM-DD-dddd") == "Fri") { %><% tp.date.now("YYYY/MM/YYYY-MM-DD-dddd", +3) %> |Next Monday]]<%* } else { %><% tp.date.now("YYYY/MM/YYYY-MM-DD-dddd", +1) %> |Tomorrow]]<%* } %> >> 

![[DailyWeeklyNotes/WeeklyNotes/<% tp.date.now("gggg-[W]ww", 0) %>#Todo]]
@Harimus
Copy link
Author

Harimus commented Dec 6, 2024

Solved when I updated to Obsidian v1.7.7

@Harimus Harimus closed this as completed Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant