Skip to content

Support for Day-of-Year Format (DDDD) as unique daily note filenames #244

@andrewfantastic

Description

@andrewfantastic

Feature Request: Support for Day-of-Year Format (DDDD) as unique daily note filenames

Description:
Add support for day-of-year format (DDDD) in daily note filenames. This format is useful for creating unique filenames using the day of the year (1-365/366).

Current Behavior:
Currently, trying to use a format like "YYYY-DDDD" results in a "Filename must be unique" error, even though this format would create unique filenames.

Proposed Solution:
I've implemented and tested a fix locally that adds support for DDDD format in validation.js. The change modifies the validation logic to accept formats that use DDDD (day of year) combined with YYYY (year) as valid formats for daily notes.

Testing:
I've tested this with the format I'd like to use:

  • "YYYY-DDDD"
    And confirmed that it properly validates and creates unique filenames.

Let me know if you'd like me to submit this as a pull request - however, I also noticed that the production version and the latest from github don't seem to behave exactly the same way; notably the current from github doesn't seem to validate any filename formats that don't have any path separator "/", whereas the production plugin does. So there may be intricacies I don't know enough about, such as the combined behavior with the Calendar plugin, etc.

Thanks for the great plugins!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions