You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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:
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!
The text was updated successfully, but these errors were encountered: