feat: configurable dailies filename format#129
Open
chipsenkbeil wants to merge 1 commit into
Open
Conversation
Add extensions.dailies.date_format config option (default "%Y-%m-%d") that controls the strftime format used for daily note filenames. Changes: - date_string() now takes roam param and uses configured format - path_to_date() now takes roam param and reverse-parses custom formats using generated Lua patterns from the strftime format string - buf_to_date() updated to pass roam param - roam_dailies_files() validates filenames against configured format - roam_dailies_dates() uses path_to_date for consistent parsing - All call sites updated to pass roam where needed For the default %Y-%m-%d format, behavior is fully backwards-compatible and uses orgmode's existing date parser. Custom formats use a pattern- matching approach that supports common strftime codes (%Y, %m, %d, etc).
This was referenced Feb 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merge Order
This PR is part of the dailies chain. Merge after #127 and #128.
Summary
extensions.dailies.date_formatconfig option (default"%Y-%m-%d") to control strftime format for daily note filenamesdate_string(),path_to_date(),buf_to_date(),roam_dailies_files(), androam_dailies_dates()to use the configured format%Y-%m-%duses orgmode's existing date parserTest plan
extensions.dailies.date_format = "%Y%m%d"and verify:goto_todaycreates a file named20260220.orggoto_next_date/goto_prev_datenavigation workscapture_dateuses the configured format for filenames