From 40300d3b0ca9f7a3519f310af19a0f548e61f9c5 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Tue, 23 Feb 2021 10:46:15 +0000 Subject: [PATCH] Document templates in-place --- .foam/templates/your-first-template.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .foam/templates/your-first-template.md diff --git a/.foam/templates/your-first-template.md b/.foam/templates/your-first-template.md new file mode 100644 index 0000000..b080763 --- /dev/null +++ b/.foam/templates/your-first-template.md @@ -0,0 +1,17 @@ +# Foam Note Templates + +Foam includes note templates! This allows you to create new notes from the given template. +Templates are treated just like snippets allowing you to use [VS Code's Snippet Syntax](https://code.visualstudio.com/docs/editor/userdefinedsnippets#_snippet-syntax). +Below you can see an example showing a todo list and a timestamp. + +## Todo List + +1. ${1:First tabstop} +2. ${2:A second tabstop} +3. ${3:A third tabstop} + +Note Created: ${CURRENT_YEAR}${CURRENT_MONTH}${CURRENT_DATE} + +--- + +Try out the above example by running the `Foam: Create New Note From Template` command and selecting the `your-first-template` template. Notice what happens when your new note is created!