obsidian-calendar-plugin
obsidian-calendar-plugin copied to clipboard
Single quote in Filename format breaks creating or finding Periodic Notes
Describe the bug
In both the Calendar Plugin and Periodic Notes Plugin, if a "Format" string contains a single quote the plugins are unable to find an existing note. For example, Format: YY.WW.MM[ - ]MMMM['s Monthly Note]
Steps to reproduce
- Go to the Periodic Notes setting and create a Daily Notes note Format with a quote in it. ex:
YY.WW.MM.DD[ - ]dddd['s Daily Note]
- Open up the calendar pane and click on a date.
- The plugin will ask to create a new note because it doesn't find the existing file or because one hasn't been created.
- Click "Create"
- An error will display that it is unable to create the note.
Alternatively, if a note is already created in the format specified, both Calendar and Periodic Notes is unable to find the file.
Expected behavior
Files with date formats containing single quotes should be able to be created and opened by the Calendar and Periodic Notes plugins.
Environment (please specify)
OS
Windows, but I believe it's a cross-platform issue with not escaping single quote characters.
Obsidian Version (e.g. v0.10.6)
v1.4.4