From 56628f840661498cefad8d9029ac23d0cebc7fad Mon Sep 17 00:00:00 2001 From: Jigme Datse Yli-Rasku Date: Mon, 11 Nov 2024 12:32:00 -0800 Subject: [PATCH] Foam Notes Templates This is the Foam Notes Templates. --- .foam/templates/Bullet-Daily-Log.md | 14 ++++++++++++++ .foam/templates/daily-note.md | 14 ++++++++++++++ .foam/templates/template-template.md | 25 +++++++++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 .foam/templates/Bullet-Daily-Log.md create mode 100644 .foam/templates/daily-note.md create mode 100644 .foam/templates/template-template.md diff --git a/.foam/templates/Bullet-Daily-Log.md b/.foam/templates/Bullet-Daily-Log.md new file mode 100644 index 0000000..e91bf15 --- /dev/null +++ b/.foam/templates/Bullet-Daily-Log.md @@ -0,0 +1,14 @@ +--- +foam_template: + name: Bullet Daily Log + description: Daily Log for Bullet Journal + filepath: 'bullet/daily/${FOAM_DATE_YEAR}-${FOAM_DATE_MONTH}-${FOAM_DATE_DATE}-$FOAM_TITLE.md' +type: bullet-daily-log + +--- +# ${FOAM_DATE_YEAR}-${FOAM_DATE_MONTH}-${FOAM_DATE_DATE} $FOAM_TITLE.md + +* [ ] Migrate from (previous daily log) +* [ ] -- new log items -- + +## Further Notes \ No newline at end of file diff --git a/.foam/templates/daily-note.md b/.foam/templates/daily-note.md new file mode 100644 index 0000000..1c716c0 --- /dev/null +++ b/.foam/templates/daily-note.md @@ -0,0 +1,14 @@ +--- +foam_template: + name: Daily Note + description: Default Daily Note + filepath: 'journal/${FOAM_DATE_YEAR}-${FOAM_DATE_MONTH}-${FOAM_DATE_DATE}.md' +type: bullet-daily-log + +--- +# ${FOAM_DATE_YEAR}-${FOAM_DATE_MONTH}-${FOAM_DATE_DATE}.md + +* [ ] Migrate from (previous daily log) +* [ ] -- new log items -- + +## Further Notes \ No newline at end of file diff --git a/.foam/templates/template-template.md b/.foam/templates/template-template.md new file mode 100644 index 0000000..b117300 --- /dev/null +++ b/.foam/templates/template-template.md @@ -0,0 +1,25 @@ +--- +foam_template: + name: zzz-Default Template + description: Default Template (do not use) + filepath: 'default-template/$FOAM_TITLE.md' +type: default-template +--- + +# ${1:$TM_FILENAME_BASE} + +Welcome to Foam templates. + +What you see in the heading is a placeholder +- it allows you to quickly move through positions of the new note by pressing TAB, e.g. to easily fill fields +- a placeholder optionally has a default value, which can be some text or, as in this case, a [variable](https://code.visualstudio.com/docs/editor/userdefinedsnippets#_variables) + - when landing on a placeholder, the default value is already selected so you can easily replace it +- a placeholder can define a list of values, e.g.: ${2|one,two,three|} +- you can use variables even outside of placeholders, here is today's date: ${CURRENT_YEAR}/${CURRENT_MONTH}/${CURRENT_DATE} + +For a full list of features see [the VS Code snippets page](https://code.visualstudio.com/docs/editor/userdefinedsnippets#_snippet-syntax). + +## To get started + +1. edit this file to create the shape new notes from this template will look like +2. create a note from this template by running the `Foam: Create New Note From Template` command