liamcain / obsidian-periodic-notes

Create/manage your daily, weekly, and monthly notes in Obsidian
MIT License
980 stars 67 forks source link

Weekly note not detected by calendar #165

Open n-konig opened 1 year ago

n-konig commented 1 year ago

Used the calendar's week number to create a weekly note - as I have previously. The note is created, by does not seem to be detected by the calendar! Get a question to create the note, and no indicator on the calendar...

Hoping this can be ironed out!

Cannotfindweeklynote

osharp commented 1 year ago

I have the same problem, and it just started today after working fine for months - none of the existing weekly notes are being recognized, and going back to previous months doesn't show the indicator any more next to each week. I'm wondering if it is related to it being the new year and there being some problem with the calendar logic?

quanru commented 1 year ago

you need configure in calendar plugin image

n-konig commented 1 year ago

@quanru Thank you, but this isn't the issue. Not sure what versions you're running of the plugin, but these options are not available in mine. Rather, these options are set in the Periodic Notes plugin. As @osharp seemed to agree, this has not been an issue previously, and as no settings were changed I doubt this is the cause.

quanru commented 1 year ago

@n-konig my version is: image

n-konig commented 1 year ago

@quanru Right, and as of this version, the plugin author suggests that the weekly note settings are maintained in the Periodic Notes Plugin

Weekly Notes (deprecated) Weekly notes have a new home The weekly note functionality has been split out into its very own plugin. In the future, the functionality will be removed from the Calendar plugin; so if you're currently using weekly notes, I encourage you to make the switch. Don't worry, the behavior is functionally identical and will still integrate with the calendar view! This split was inspired by the One Thing Well philosophy. Plugins should be as modular. Some users might want weekly notes and have no use for a calendar view. And vice versa. If you are currently using weekly notes within the Calendar plugin, the new Periodic Notes plugin will migrate your settings for you automatically.

🤷

dedebenui commented 1 year ago

Same here. It works for my daily notes : [LogBook]/YYYY/MM/[W]WW/YYYY-MM-DD but not for my weekly notes [LogBook]/YYYY/MM/[W]WW/[Review] (it can create it when it doesn't exists, but I get the same error as @devangnegandhi in #166 when trying to open an existing one via the 'open weekly note' command).

I've tried with both 0.0.17 and 1.0.0b3. The only difference with 1.0.0b3 is that I don't get any error when trying to open the existing weekly note : it just doesn't do anything. I've done some tests with other formats and I think the bug happens when the filename is constant (i.e. doesn't have any variable to substitute). For example, when my weekly note format ends in [Review] I get the bug, but if I name the file [W]WW-[Review] to show the week number in the filename, everything works as expected (in both 0.0.17 and 1.0.0b3).

devangnegandhi commented 1 year ago

Ah interesting! I changed my settings for my weekly notes from using [W]ww to a static string like [Weekly Notes] and I now get the same problem as described here and #166. So @dedebenui you are right - the issue has to do with the constant filename without any variables.

n-konig commented 1 year ago

I have the following format for weekly notes: YYYY/gggg-[W]WW The command "Periodic Notes: Open weekly note" works fine, but the calendar plugin does not recognize last year's notes 😞