]> git.rocketbowman.com Git - jetsam.git/commitdiff
fix: Put snippets into vscode dir
authorKyle Bowman <kylebowman14@gmail.com>
Sat, 9 Nov 2024 23:52:30 +0000 (18:52 -0500)
committerKyle Bowman <kylebowman14@gmail.com>
Sat, 9 Nov 2024 23:52:30 +0000 (18:52 -0500)
.vscode/jetsam.code-snippets [new file with mode: 0644]
jetsam.code-snippets [deleted file]

diff --git a/.vscode/jetsam.code-snippets b/.vscode/jetsam.code-snippets
new file mode 100644 (file)
index 0000000..aea0aee
--- /dev/null
@@ -0,0 +1,117 @@
+{
+       // 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"
+       // }
+       "Snippet Template":{
+               "prefix": "snp",
+               "description": "Defines a snippet.",
+               "body": [
+                       "\"${1:name}\":{",
+                       "\t\"prefix\":\"$2\",",
+                       "\t\"description\":\"$3\",",
+                       "\t\"body\": [ ",
+                       "\t\t$0",
+                       "\t]",
+                       "}"
+               ],
+       },
+       "MD Metadata":{
+               "description": "Produces YAML metadata for summaries.",
+               "prefix": "mdmt",
+               "body": [
+                       "---",
+                       "title: $1",
+                       "author: Kyle Bowman",
+                       "created: $CURRENT_YEAR$CURRENT_MONTH$CURRENT_DATE$CURRENT_HOUR$CURRENT_MINUTE$CURRENT_SECOND",
+                       "last_updated: $CURRENT_YEAR$CURRENT_MONTH$CURRENT_DATE$CURRENT_HOUR$CURRENT_MINUTE$CURRENT_SECOND",
+                       "---",
+                       "",
+                       "# $1",
+                       "$0"
+               ], 
+               "scope": "markdown"
+       },
+       "MD Last Updated":{
+               "prefix":"up",
+               "description":"",
+               "body": [ 
+                       "last_updated: $CURRENT_YEAR$CURRENT_MONTH$CURRENT_DATE$CURRENT_HOUR$CURRENT_MINUTE$CURRENT_SECOND",
+               ],
+               "scope":"markdown"
+       },      
+       "MD Bash":{
+               "prefix":"bs",
+               "description":"Creates a bash block.",
+               "body": [ 
+                       "``` bash",
+                       "$0",
+                       "```\n"
+               ],
+               "scope":"markdown"
+       },
+       "MD Python":{
+               "prefix":"py",
+               "description":"Creates a python block.",
+               "body": [ 
+                       "``` python",
+                       "$0",
+                       "```\n"
+               ],
+               "scope":"markdown"
+       },
+       "MD Code":{
+               "prefix":"```",
+               "description":"Creates a code block",
+               "body": [ 
+                       "``` $1",
+                       "$0",
+                       "```\n"
+               ],
+               "scope":"markdown"
+       },
+       "MD Console Prefix":{
+               "prefix":"tm",
+               "description":"Inserts a dummy terminal prefix.",
+               "body": [ 
+                       "user@host:$$0"
+               ],
+       },
+       "MD Link Clipboard":{
+               "prefix":"lc",
+               "description":"Inserts a md link from clipboard.",
+               "body": [ 
+                       "[$1]($CLIPBOARD)$0"
+               ],
+               "scope": "markdown"
+       },
+       "MD Relative Link":{
+               "prefix":"ll",
+               "description":"Inserts a link relative to file.",
+               "body": [ 
+                       //exclude / from ../ b/c / triggers autocompletion
+                       "[${1:link-text}](..${2:/dir/file})$0"  
+               ],
+               "scope": "markdown"
+       },
+       "MD Zettelkasten Link":{
+               "prefix":"lz",
+               "description":"Inserts a link relative to file.",
+               "body": [ 
+                       "[${1:link-text}](../zettelkasten${2:/file})$0" 
+               ],
+               "scope": "markdown"
+       }
+}
\ No newline at end of file
diff --git a/jetsam.code-snippets b/jetsam.code-snippets
deleted file mode 100644 (file)
index aea0aee..0000000
+++ /dev/null
@@ -1,117 +0,0 @@
-{
-       // 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"
-       // }
-       "Snippet Template":{
-               "prefix": "snp",
-               "description": "Defines a snippet.",
-               "body": [
-                       "\"${1:name}\":{",
-                       "\t\"prefix\":\"$2\",",
-                       "\t\"description\":\"$3\",",
-                       "\t\"body\": [ ",
-                       "\t\t$0",
-                       "\t]",
-                       "}"
-               ],
-       },
-       "MD Metadata":{
-               "description": "Produces YAML metadata for summaries.",
-               "prefix": "mdmt",
-               "body": [
-                       "---",
-                       "title: $1",
-                       "author: Kyle Bowman",
-                       "created: $CURRENT_YEAR$CURRENT_MONTH$CURRENT_DATE$CURRENT_HOUR$CURRENT_MINUTE$CURRENT_SECOND",
-                       "last_updated: $CURRENT_YEAR$CURRENT_MONTH$CURRENT_DATE$CURRENT_HOUR$CURRENT_MINUTE$CURRENT_SECOND",
-                       "---",
-                       "",
-                       "# $1",
-                       "$0"
-               ], 
-               "scope": "markdown"
-       },
-       "MD Last Updated":{
-               "prefix":"up",
-               "description":"",
-               "body": [ 
-                       "last_updated: $CURRENT_YEAR$CURRENT_MONTH$CURRENT_DATE$CURRENT_HOUR$CURRENT_MINUTE$CURRENT_SECOND",
-               ],
-               "scope":"markdown"
-       },      
-       "MD Bash":{
-               "prefix":"bs",
-               "description":"Creates a bash block.",
-               "body": [ 
-                       "``` bash",
-                       "$0",
-                       "```\n"
-               ],
-               "scope":"markdown"
-       },
-       "MD Python":{
-               "prefix":"py",
-               "description":"Creates a python block.",
-               "body": [ 
-                       "``` python",
-                       "$0",
-                       "```\n"
-               ],
-               "scope":"markdown"
-       },
-       "MD Code":{
-               "prefix":"```",
-               "description":"Creates a code block",
-               "body": [ 
-                       "``` $1",
-                       "$0",
-                       "```\n"
-               ],
-               "scope":"markdown"
-       },
-       "MD Console Prefix":{
-               "prefix":"tm",
-               "description":"Inserts a dummy terminal prefix.",
-               "body": [ 
-                       "user@host:$$0"
-               ],
-       },
-       "MD Link Clipboard":{
-               "prefix":"lc",
-               "description":"Inserts a md link from clipboard.",
-               "body": [ 
-                       "[$1]($CLIPBOARD)$0"
-               ],
-               "scope": "markdown"
-       },
-       "MD Relative Link":{
-               "prefix":"ll",
-               "description":"Inserts a link relative to file.",
-               "body": [ 
-                       //exclude / from ../ b/c / triggers autocompletion
-                       "[${1:link-text}](..${2:/dir/file})$0"  
-               ],
-               "scope": "markdown"
-       },
-       "MD Zettelkasten Link":{
-               "prefix":"lz",
-               "description":"Inserts a link relative to file.",
-               "body": [ 
-                       "[${1:link-text}](../zettelkasten${2:/file})$0" 
-               ],
-               "scope": "markdown"
-       }
-}
\ No newline at end of file