]> git.rocketbowman.com Git - jetsam.git/commitdiff
feat: add snippet for metadata
authorKyle Bowman <kylebowman14@gmail.com>
Fri, 4 Oct 2024 01:15:27 +0000 (21:15 -0400)
committerKyle Bowman <kylebowman14@gmail.com>
Fri, 4 Oct 2024 01:15:27 +0000 (21:15 -0400)
.vscode/rocky.code-snippets [new file with mode: 0644]

diff --git a/.vscode/rocky.code-snippets b/.vscode/rocky.code-snippets
new file mode 100644 (file)
index 0000000..35d83f5
--- /dev/null
@@ -0,0 +1,33 @@
+{
+       // Place your notes 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:
+       // "Print to console": {
+       //      "scope": "javascript,typescript",
+       //      "prefix": "log",
+       //      "body": [
+       //              "console.log('$1');",
+       //              "$2"
+       //      ],
+       //      "description": "Log output to console"
+       // }
+       "Summary Metadata":{
+               "scope": "markdown",
+               "prefix": "sum",
+               "body": [
+                       "---",
+                       "title: $1",
+                       "author: Kyle Bowman",
+                       "created: $CURRENT_YEAR$CURRENT_MONTH$CURRENT_DATE$CURRENT_HOUR$CURRENT_MINUTE$CURRENT_SECOND",
+                       "---",
+                       "",
+                       "# $1",
+                       "$0"
+               ], 
+               "description": "Produces YAML metadata for summaries."
+       }
+}
\ No newline at end of file