-
Notifications
You must be signed in to change notification settings - Fork 750
Description
Describe the bug
I recently migrated my foam repo from a Linux machine to a windows machine. I also upgraded the extension Prior to the migration, the foam_template: YAML Frontmatter block was removed when a template was used. Now on the windows machine, that block remains when any template is used. Foam variables present in the template are properly populated.
I've tried using windows style escaped paths and Linux style paths, and Foam handles both correctly but does not remove the foam_template block.
I am also aware of the possibility that I'm missing something simple and/or obvious that is specific to Windows 🙃.
Small Reproducible Example
No response
Steps to Reproduce the Bug or Issue
Here is the template for my daily notes:
---
type: daily-note
foam_template:
filepath: '/daily-notes/${FOAM_DATE_YEAR}${FOAM_DATE_MONTH}${FOAM_DATE_DATE}.md'
name: Daily Note
description: Custom daily note template
---
# ${FOAM_DATE_YEAR}.${FOAM_DATE_MONTH}.${FOAM_DATE_DATE} ${FOAM_DATE_DAY_NAME}
### Meetings
### Flagged Emails
### Today's Successes
- \
### How could I have made today better?
- \
### Notes
- \
### To Do
- [ ] TaskExpected behavior
I would expect meta-data like type: to remain and everything under and including foam_template: to be removed on file creation.
Screenshots or Videos
Operating System Version
Windows 11 Enterprise
Visual Studio Code Version
1.108.2
Additional context
No response