Skip to content

How to make a daily template which respects foam.openDailyNote.titleFormat? #1045

Answered by riccardoferretti
leira asked this question in Q&A
Discussion options

You must be logged in to vote

The foam.openDailyNote settings came before templates, and basically they are now "deprecated" in favor of using the template. The settings are ignored when a daily note template is found.

Yes I agree there is a bit of inconsistency, the old settings haven't been removed yet for backwards compatibility, but it feels like something that needs to be done at some point.
And unfortunately to follow the VS Code variable pattern, doing the dateFormat bit is not easy, except by adding extra properties.

This is correct, you need to recreate the title using the variables defined here (https://code.visualstudio.com/docs/editor/userdefinedsnippets#_snippet-syntax) - note that:

  • using FOAM_DATE_* the…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@leira
Comment options

Answer selected by leira
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants