From cfa2ad2165ba99836d2759fd1c6da2512d6750bd Mon Sep 17 00:00:00 2001 From: Jerome Lelong Date: Thu, 10 May 2018 07:20:55 +0200 Subject: [PATCH] For maths snippets, use $0 as the placeholder for the body part This is related to #609. --- data/commands.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/data/commands.json b/data/commands.json index 959ee3fd6..2d52fcfbd 100644 --- a/data/commands.json +++ b/data/commands.json @@ -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": { @@ -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":{