Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single quote in Filename format breaks creating or finding Periodic Notes #326

Open
nota9 opened this issue Aug 26, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@nota9
Copy link

nota9 commented Aug 26, 2023

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

  1. 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]
  2. Open up the calendar pane and click on a date.
  3. The plugin will ask to create a new note because it doesn't find the existing file or because one hasn't been created.
  4. Click "Create"
  5. 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

@nota9 nota9 added the bug Something isn't working label Aug 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant