liamcain / obsidian-calendar-plugin

Simple calendar widget for Obsidian.
MIT License
1.64k stars 142 forks source link

Fails to open or create "daily" notes with date format YYYYMM #330

Open jgraciahlrs opened 1 year ago

jgraciahlrs commented 1 year ago

Describe the bug

In certain situations I prefer to use "monthly" notes rather than "daily" notes and I have configured the core plugin respectively.

Now, when clicking on a date in calendar view, I get an error "unable to create new file". It does not matter if the file exists or not.

Steps to reproduce

  1. Configure Daily Notes to use date format "YYYYMM". Settings > Core plugins > Daily notes > Date format > "YYYYMM"
  2. Restart Obsidian
  3. Open Calendar view
  4. Select any day
  5. Hit "Create" on New Daily Note popup

Expected behavior

Create / open daily notes even if date format is "YYYYMM".

Screenshots

Environment (please specify)

OS

macOS

Obsidian Version (e.g. v0.10.6)

v1.4.14