From 0631fa49ecd6306cb5bbda83964306cbaaf8e58d Mon Sep 17 00:00:00 2001 From: Andrei Jiroh Halili Date: Wed, 5 Jun 2024 01:21:28 +0800 Subject: [PATCH] chore(vscode): add project-level snippets and change directory for opening daily notes Signed-off-by: Andrei Jiroh Halili --- .vscode/embeds.code-snippets | 25 +++++++++++++++++++++++++ .vscode/settings.json | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .vscode/embeds.code-snippets diff --git a/.vscode/embeds.code-snippets b/.vscode/embeds.code-snippets new file mode 100644 index 0000000..37aa650 --- /dev/null +++ b/.vscode/embeds.code-snippets @@ -0,0 +1,25 @@ +{ + // Place your garden-monorepo workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and + // description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope + // is left empty or omitted, the snippet gets applied to all languages. The prefix is what is + // used to trigger the snippet and the body will be expanded and inserted. Possible variables are: + // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. + // Placeholders with the same ids are connected. + // Example: + "Embed YouTube video": { + "scope": "markdown", + "prefix": "yt", + "body": [ + "
", + " ", + "description": "Embed a Spotify playlist with the first 100 songs on preview list (configured to height=352)" + } +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index de873a2..03fafbf 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,5 @@ { - "foam.openDailyNote.directory": "./src/updates", + "foam.openDailyNote.directory": "./src/garden/daily-notes/posts", "foam.files.newNotePath": "currentDir", "deno.enable": true, "gitlens.remotes": [ -- 2.51.2