liamcain / obsidian-calendar-plugin

Simple calendar widget for Obsidian.
MIT License
1.62k stars 141 forks source link

Daily notes cannot be created from the calendar for February because dates are linked to existing notes in January #229

Open mretier opened 2 years ago

mretier commented 2 years ago

Describe the bug

The calendar view, when displaying the overview of the current month, February 2022, shows that notes have been created for dates that none have been created for. It turns out, that if notes were created on for example, January 22, 2022, the plugin shows that a note already exists for that day in February. Clicking on that date in the calendar then directs me to the note in January instead of creating a new one in February.

Going back in the calendar to January shows that no daily notes are present even though they are. Clicking on a date in January for which a daily note exists then throws the error message 'Unable to create new file'.

I'm using the following date format: YYYY/MM/DD

Screenshots

January view of the calendar. I'd expect to see one or two dots for most dates. image

February view of the calendar. I'd expect to see no dots for most dates, since no notes have been created for theses dates, yet. image

OS

Windows 10

Obsidian Version (e.g. v0.10.6)

v0.13.23

Theme (if applicable):

Default theme

mretier commented 2 years ago

I believe this issue is caused by the same reason as #216

mretier commented 2 years ago

After digging around in the forums a little bit, it appears that each daily note needs to have a unique file name over all daily notes. I now changed my structure to YYYY/MM/YYYY-MM-DD. This way the plugin is working as expected and I get to use my desired folder structure.

luoliguang commented 4 months ago

在论坛上搜索了一番后,我发现每个每日笔记似乎都需要有一个不同于所有每日笔记的文件名。 我现在将结构更改为 YYYY/MM/YYYY-MM-DD。这样,插件就可以按预期工作,我可以使用我想要的文件夹结构。

yes!thanks very much