How to make a daily template which respects foam.openDailyNote.titleFormat
?
#1045
-
There is the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The 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. 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:
Is there something you can't achieve with templates? or is there some confusion coming from having the two ways of doing daily notes? We have asked VS Code to provide access to variables outside of editors to improve support for it, you can help by upvoting the following issue: microsoft/vscode#155868 |
Beta Was this translation helpful? Give feedback.
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:
FOAM_DATE_*
the…