Files
dotfiles/dot_vim/plugged/friendly-snippets/snippets/quarto.json

129 lines
3.7 KiB
JSON

{
"Insert bold text": {
"prefix": "bold",
"body": "**${1:${TM_SELECTED_TEXT}}**$0",
"description": "Insert bold text"
},
"Insert italic text": {
"prefix": "italic",
"body": "*${1:${TM_SELECTED_TEXT}}*$0",
"description": "Insert italic text"
},
"Insert quoted text": {
"prefix": "quote",
"body": "> ${1:${TM_SELECTED_TEXT}}",
"description": "Insert quoted text"
},
"Insert inline code": {
"prefix": "code",
"body": "`${1:${TM_SELECTED_TEXT}}`$0",
"description": "Insert inline code"
},
"Insert shortcode": {
"prefix": "shortcode",
"body": "{{< $0 >}}",
"description": "Insert shortcode"
},
"Insert fenced code block": {
"prefix": "fenced codeblock",
"body": [
"```${1|python,c,c++,c#,ruby,go,java,php,htm,css,javascript,json,markdown,console|}",
"${TM_SELECTED_TEXT}$0",
"```"
],
"description": "Insert fenced code block"
},
"Insert executable code block": {
"prefix": "executable codeblock",
"body": [
"```{${1|python,r,julia,ojs,sql,bash|}}",
"${TM_SELECTED_TEXT}$0",
"```"
],
"description": "Insert executable code block"
},
"Insert raw code block": {
"prefix": "raw codeblock",
"body": [
"```{${1|html,latex,openxml,opendocument,asciidoc,docbook,markdown,dokuwiki,fb2,gfm,haddock,icml,ipynb,jats,jira,json,man,mediawiki,ms,muse,opml,org,plain,rst,rtf,tei,texinfo,textile,xwiki,zimwiki,native|}}",
"${TM_SELECTED_TEXT}$0",
"```"
],
"description": "Insert raw code block"
},
"Insert heading level 1": {
"prefix": "heading1",
"body": "# ${1:${TM_SELECTED_TEXT}}",
"description": "Insert heading level 1"
},
"Insert heading level 2": {
"prefix": "heading2",
"body": "## ${1:${TM_SELECTED_TEXT}}",
"description": "Insert heading level 2"
},
"Insert heading level 3": {
"prefix": "heading3",
"body": "### ${1:${TM_SELECTED_TEXT}}",
"description": "Insert heading level 3"
},
"Insert heading level 4": {
"prefix": "heading4",
"body": "#### ${1:${TM_SELECTED_TEXT}}",
"description": "Insert heading level 4"
},
"Insert heading level 5": {
"prefix": "heading5",
"body": "##### ${1:${TM_SELECTED_TEXT}}",
"description": "Insert heading level 5"
},
"Insert heading level 6": {
"prefix": "heading6",
"body": "###### ${1:${TM_SELECTED_TEXT}}",
"description": "Insert heading level 6"
},
"Insert unordered list": {
"prefix": "unordered list",
"body": ["- ${1:first}", "- ${2:second}", "- ${3:third}", "$0"],
"description": "Insert unordered list"
},
"Insert ordered list": {
"prefix": "ordered list",
"body": ["1. ${1:first}", "2. ${2:second}", "3. ${3:third}", "$0"],
"description": "Insert ordered list"
},
"Insert horizontal rule": {
"prefix": "horizontal rule",
"body": "----------\n",
"description": "Insert horizontal rule"
},
"Insert link": {
"prefix": "link",
"body": "[${TM_SELECTED_TEXT:${1:text}}](https://${2:link})$0",
"description": "Insert link"
},
"Insert image": {
"prefix": "image",
"body": "![${TM_SELECTED_TEXT:${1:alt}}](https://${2:link})$0",
"description": "Insert image"
},
"Insert strikethrough": {
"prefix": "strikethrough",
"body": "~~${1:${TM_SELECTED_TEXT}}~~",
"description": "Insert strikethrough"
},
"Insert div block": {
"prefix": "div",
"body": ["::: {.${1:class}}", "${TM_SELECTED_TEXT}$0", ":::"],
"description": "Insert div block"
},
"Insert callout block": {
"prefix": "callout",
"body": [
"::: {.${1|callout,callout-note,callout-tip,callout-important,callout-caution,callout-warning|}}",
"${TM_SELECTED_TEXT}$0",
":::"
],
"description": "Insert callout block"
}
}