]> git.rocketbowman.com Git - jetsam.git/commitdiff
feat: Add working snippets.
authorKyle Bowman <kylebowman14@gmail.com>
Sat, 9 Nov 2024 15:07:13 +0000 (10:07 -0500)
committerKyle Bowman <kylebowman14@gmail.com>
Sat, 9 Nov 2024 15:07:13 +0000 (10:07 -0500)
.vscode/rocky.code-snippets

index 35d83f5b2343af734931f198e37ce8574ddefa62..6fa94c6dc99b95cd39aef44a478851d08cd1105f 100644 (file)
        //      ],
        //      "description": "Log output to console"
        // }
-       "Summary Metadata":{
+       "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":{
                "scope": "markdown",
-               "prefix": "sum",
+               "prefix": "mdmt",
                "body": [
                        "---",
                        "title: $1",
                        "$0"
                ], 
                "description": "Produces YAML metadata for summaries."
+       },
+       "MD Bash":{
+               "prefix":"bsh",
+               "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":"term",
+               "description":"Inserts a dummy terminal prefix.",
+               "body": [ 
+                       "user@host:${1:~}$$0"
+               ]
+       },
+       "MD Link Clipboard":{
+               "prefix":"clp",
+               "description":"Inserts a md link from clipboard.",
+               "body": [ 
+                       "[$1]($CLIPBOARD)$0"
+               ]
+       },
+       // Damn. I need to figure out how to make relative links work in both 
+       // pandoc and vscode for things in different directories.
+       "MD Relative Link":{
+               "prefix":"rel",
+               "description":"Inserts a link relative to file.",
+               "body": [ 
+                       "[[${1:link-text}|../${2:dir/file}]]$0" 
+               ]
        }
 }
\ No newline at end of file