feat: support configurable templates for daily buffer creation#128
Open
chipsenkbeil wants to merge 1 commit into
Open
feat: support configurable templates for daily buffer creation#128chipsenkbeil wants to merge 1 commit into
chipsenkbeil wants to merge 1 commit into
Conversation
Add extensions.dailies.default_template_key config option. When navigating to a daily note (goto_date, goto_today, etc.) and the file does not exist, use the specified template key from the dailies templates to create the buffer content. Falls back to the current hardcoded structure if the key is nil or not found. This allows users to customize the content of daily notes created via goto_* commands, not just via capture_date.
This was referenced Feb 21, 2026
|
Hit a runtime error in Error: I saw that -- at line ~122
local expanded = make_dailies_templates(roam, date)
-- at line ~171
function make_dailies_templates(roam, date)
...
endMoving the definition above the call resolved it on my end. |
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 (before #129).
Summary
extensions.dailies.default_template_keyconfig optiongoto_date,goto_today, etc.) and the file does not exist, uses the specified template key from dailies templates to create the buffer contentgoto_*commands, not just viacapture_dateTest plan
extensions.dailies.default_template_key = "d"in configgoto_dateorgoto_today"d"template