Skip to content

Commit

Permalink
For maths snippets, use $0 as the placeholder for the body part
Browse files Browse the repository at this point in the history
This is related to James-Yu#609.
  • Loading branch information
jlelong committed May 10, 2018
1 parent e4d0b12 commit cfa2ad2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions data/commands.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"begin":{
"command":"begin",
"snippet":"begin{${1:env}}\n\t$2\n\\\\end{${1:env}}",
"snippet":"begin{${1:env}}\n\t$0\n\\\\end{${1:env}}",
"detail":"begin a new environment"
},
"lrparen":{
"command":"left(",
"snippet":"left(${1}\\right)${0}",
"snippet":"left($0\\right)",
"detail":"\\left( ... \\right)"
},
"lrbrack":{
"command":"left[",
"snippet":"left[${1}\\right]${0}",
"snippet":"left[$0\\right]",
"detail":"\\left[ ... \\right]"
},
"lrcurly":{
"command":"left\\{",
"snippet":"left\\{${1}\\right\\\\}${0}",
"snippet":"left\\{$0\\right\\\\}",
"detail":"\\left\\{ ... \\right\\}"
},
"frame": {
Expand All @@ -26,17 +26,17 @@
},
"latexinlinemath":{
"command":"(",
"snippet":"(${1}\\)${0}",
"snippet":"(${0}\\)",
"detail":"inline math \\( ... \\)"
},
"latexdisplaymath":{
"command":"[",
"snippet":"[${1}\\]${0}",
"snippet":"[$0\\]",
"detail":"display math \\[ ... \\]"
},
"curlybrackets":{
"command":"{",
"snippet":"{${1}\\\\}${0}",
"snippet":"{$0\\\\}",
"detail":"curly brackets \\{ ... \\}"
},
"title":{
Expand Down

0 comments on commit cfa2ad2

Please sign in to comment.