obsidian-calendar-plugin icon indicating copy to clipboard operation
obsidian-calendar-plugin copied to clipboard

Incorrect results when using annual subdirectories

Open ardunster opened this issue 3 years ago • 0 comments

Before Submitting: Double-check that you are running the latest version of the plugin. The bug might have already been fixed 😄

Describe the bug

Last week I decided to start typing up some older, handwritten notes into my obsidian vault to take advantage of obsidian's features and store my previous brain work in a linkable format. I created Daily/2019/12-14 according to the date format I prefer using (keeping each year's notes in their own folder) and started work.

Today I happened to open up the calendar view getting ready to try making weekly notes work, and noticed I already had content for December, what? Clicking on these December 2021 entries took me to my December 2019 entries instead. I created a test note at Daily/2021/12-14, which correctly loaded my template and other details, but clicking on the 14th in 2021 still takes me to Daily/2019/12-14.

This is probably related to issue 184 as well.

Steps to reproduce

  1. Use a date format that creates subdirectories based on year or other date subdivisions.
  2. Click on a date which results in the same filename, but a different subdirectory, in the Calendar view.
  3. See the previously created date in the wrong subfolder instead.

Expected behavior

Calendar should take into account subfolders created as part of the date format when accessing notes.

Screenshots

Surprise December content: cal1

Making a test whose filename, but not subdirectory, conflicts with prior files works fine in template and linking systems... cal2

Clicking on the 14th in December 2021 brings up a historical note I typed in from December 2019, and even shows highlighted as the current note in the calendar: cal3

Scrolling back to December 2019 shows no notes. cal4

Daily note date format settings: cal5

Environment (please specify)

OS

This is on Windows10 now, I will check OSX Catalina when I get home from work tonight.

Obsidian Version (e.g. v0.10.6)

v0.12.19

Theme (if applicable):

I doubt it's related at all but I am using California Coast dark version.

ardunster avatar Dec 01 '21 22:12 ardunster