liamcain / obsidian-calendar-plugin

Simple calendar widget for Obsidian.
MIT License
1.63k stars 143 forks source link

Calendar not using daily notes format #214

Open CaseyRo opened 2 years ago

CaseyRo commented 2 years ago

Describe the bug

I'm using a quite standard 'daily notes' format MM-DD ddd but clicking on day in the calendar reverts back to the original.

Already tried:

Expected behavior

When clicking on a specific day in the calendar it should go to the note formatted according to the daily notes format

Screenshots

CleanShot 2021-11-30 at 12 01 15

Environment (please specify)

OS

macOS

Obsidian Version (e.g. v0.10.6)

0.12.19

liamcain commented 2 years ago

Hi @CaseyRo, the issue here is with the format itself. You've definitely made it apparent that the calendar plugin could use some better messaging when it fails to parse the date format. Really sorry about that!

There are a few implicit requirements for the date format:

image

I'll see what I can do about improving the messaging there so it doesn't fail silently. I also have some ideas around making the date format a bit more flexible.

CaseyRo commented 2 years ago

@liamcain thanks for your response! To turn this 'bug report' into a feature request, my use cases here:

Thanks for catching up over Christmas! Happy holidays!

toddz262 commented 2 years ago

@liamcain - I have a related request, if it's possible: could Calendar ignore any text appended to a filename after the parseable date format?

Use case -- I often add text to a daily note filename to make it easier to skim for the major points of that day:

Calendar picks up my daily notes just fine, until I append any text to the filename.

Is this a technical possibility? Or should I just be reconsidering my method?

fplanque commented 2 years ago

Yes, please allow to add any text after the date format.

Another way to put it is: please allow a filename format like YYYY-MM-DD *