Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
290 changes: 271 additions & 19 deletions snippets/quarto.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,292 @@
{
"R Code Chunk": {
"prefix": "r",
"Bold": {
"prefix": "bold",
"body": "**${1:${TM_SELECTED_TEXT}}**$0",
"description": "Insert bold text"
},
"Italic": {
"prefix": "italic",
"body": "*${1:${TM_SELECTED_TEXT}}*$0",
"description": "Insert italic text"
},
"Strikethrough": {
"prefix": "strikethrough",
"body": "~~${1:${TM_SELECTED_TEXT}}~~$0",
"description": "Insert strikethrough"
},
"Inline code": {
"prefix": "code",
"body": "`${1:${TM_SELECTED_TEXT}}`$0",
"description": "Insert inline code"
},
"Quote": {
"prefix": "quote",
"body": ["", "> ${1:${TM_SELECTED_TEXT}}", "", "$0"],
"description": "Insert quoted text"
},
"Link": {
"prefix": "link",
"body": "[${TM_SELECTED_TEXT:${1:text}}](${2:link})$0",
"description": "Insert link"
},
"Image": {
"prefix": "image",
"body": "![${TM_SELECTED_TEXT:${1:alt}}](${2:link})$0",
"description": "Insert image"
},
"Figure": {
"prefix": "figure",
"body": "![${1:caption}](${2:path}){#fig-${3:id} fig-alt=\"${4:alt}\"}$0",
"description": "Insert figure with caption and alt text"
},
"Horizontal rule": {
"prefix": "horizontal rule",
"body": ["", "---", "", "$0"],
"description": "Insert horizontal rule"
},
"Heading 1": {
"prefix": "heading1",
"body": ["", "# ${1:${TM_SELECTED_TEXT}}", "", "$0"],
"description": "Insert heading level 1"
},
"Heading 2": {
"prefix": "heading2",
"body": ["", "## ${1:${TM_SELECTED_TEXT}}", "", "$0"],
"description": "Insert heading level 2"
},
"Heading 3": {
"prefix": "heading3",
"body": ["", "### ${1:${TM_SELECTED_TEXT}}", "", "$0"],
"description": "Insert heading level 3"
},
"Heading 4": {
"prefix": "heading4",
"body": ["", "#### ${1:${TM_SELECTED_TEXT}}", "", "$0"],
"description": "Insert heading level 4"
},
"Heading 5": {
"prefix": "heading5",
"body": ["", "##### ${1:${TM_SELECTED_TEXT}}", "", "$0"],
"description": "Insert heading level 5"
},
"Heading 6": {
"prefix": "heading6",
"body": ["", "###### ${1:${TM_SELECTED_TEXT}}", "", "$0"],
"description": "Insert heading level 6"
},
"Unordered list": {
"prefix": "unordered list",
"body": ["", "- ${1:first}.", "- ${2:second}.", "- ${3:third}.", "", "$0"],
"description": "Insert unordered list"
},
"Ordered list": {
"prefix": "ordered list",
"body": ["", "1. ${1:first}.", "2. ${2:second}.", "3. ${3:third}.", "", "$0"],
"description": "Insert ordered list"
},
"Fenced code block": {
"prefix": "fenced codeblock",
"body": [
"",
"```${1|bash,c,cpp,csharp,css,go,html,java,javascript,json,markdown,php,python,r,ruby,rust,sql,toml,typescript,xml,yaml|}",
"${TM_SELECTED_TEXT}$0",
"```",
""
],
"description": "Insert fenced code block"
},
"Executable code block": {
"prefix": "executable codeblock",
"body": [
"",
"```{${1|python,r,julia,ojs,sql,bash,mermaid,dot|}}",
"${TM_SELECTED_TEXT}$0",
"```",
""
],
"description": "Insert executable code block"
},
"Raw code block": {
"prefix": "raw codeblock",
"body": [
"```{r}",
"$0",
"```"
"",
"```{=${1|html,latex,typst,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": "R Code Chunk"
"description": "Insert raw code block"
},
"Python Code Chunk": {
"R code chunk": {
"prefix": "r",
"body": ["```{r}", "$0", "```"],
"description": "R code chunk"
},
"Python code chunk": {
"prefix": "py",
"body": ["```{python}", "$0", "```"],
"description": "Python code chunk"
},
"Shortcode": {
"prefix": "shortcode",
"body": "{{< $0 >}}",
"description": "Insert shortcode"
},
"Div block": {
"prefix": "div",
"body": ["", "::: {${1:#id .class1 key=value}}", "", "${TM_SELECTED_TEXT}$0", "", ":::", ""],
"description": "Insert div block"
},
"Span": {
"prefix": "span",
"body": "[${TM_SELECTED_TEXT:${1:text}}]{.${2:class}}$0",
"description": "Insert span"
},
"Fragment block": {
"prefix": "fragment",
"body": ["", "::: {.fragment}", "", "${TM_SELECTED_TEXT}$0", "", ":::", ""],
"description": "Insert fragment block"
},
"Callout": {
"prefix": "callout",
"body": [
"```{python}",
"$0",
"```"
"",
"::: {.${1|callout,callout-note,callout-tip,callout-important,callout-caution,callout-warning|}}",
"",
"${TM_SELECTED_TEXT}$0",
"",
":::",
""
],
"description": "Python Code Chunk"
"description": "Insert callout block"
},
"Callout Note": {
"prefix": "note",
"body": ["::: {.callout-note}", "$0", ":::"],
"description": "Callout note"
},
"Two columns": {
"prefix": "columns2",
"body": [
"",
"::: {.columns}",
"",
"::: {.column}",
"",
"$1",
"",
":::",
"",
"::: {.column}",
"",
"$2",
"",
":::",
"",
":::",
"",
"$0"
],
"description": "Insert two columns"
},
"Three columns": {
"prefix": "columns3",
"body": [
"",
"::: {.columns}",
"",
"::: {.column}",
"",
"$1",
"",
":::",
"",
"::: {.column}",
"",
"$2",
"",
":::",
"",
"::: {.column}",
"",
"$3",
"",
":::",
"",
":::",
"",
"$0"
],
"description": "Insert three columns"
},
"Tabset panel": {
"prefix": "tabset",
"body": [
"",
"::: {.panel-tabset}",
"",
"## ${1:Tab 1}",
"",
"${2:content}",
"",
"## ${3:Tab 2}",
"",
"${4:content}",
"",
":::",
"",
"$0"
],
"description": "Insert tabset panel"
},
"Cross-reference div": {
"prefix": "xref",
"body": [
"",
"::: {#${1|fig-,tbl-,lst-|}${2:id}}",
"",
"${3:content}",
"",
"${4:caption}",
"",
":::",
"",
"$0"
],
"description": "Insert cross-reference div (figure, table, or listing)"
},
"List table": {
"prefix": "list-table",
"body": [
"::: {.callout-note}",
"$0",
":::"
"",
"::: {.list-table}",
"",
"- - ${1:header 1}",
" - ${2:header 2}",
"",
"- - ${3:row 1 col 1}",
" - ${4:row 1 col 2}",
"",
"- - ${5:row 2 col 1}",
" - ${6:row 2 col 2}",
"",
":::",
"",
"$0"
],
"description": "Callout Note"
"description": "Insert list table"
},
"YAML Frontmatter": {
"YAML frontmatter": {
"prefix": "yaml",
"body": [
"---",
"title: \"$1\"",
"format: html",
"title: \"${1:title}\"",
"author: ${2:author}",
"format: ${3|html,pdf,docx,typst,revealjs|}",
"---",
"",
"$0"
],
"description": "YAML Frontmatter"
"description": "Insert YAML frontmatter"
}
}