From 26c0e9bb4d60e7808de7703aef39e2acfe6b5b8a Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Fri, 26 Oct 2018 17:33:02 -0700 Subject: [PATCH] Take selected text into account for more markdown snippets Fixes #61914 --- extensions/markdown-basics/snippets/markdown.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/extensions/markdown-basics/snippets/markdown.json b/extensions/markdown-basics/snippets/markdown.json index 4a5152c18c8..6ee831ae4a5 100644 --- a/extensions/markdown-basics/snippets/markdown.json +++ b/extensions/markdown-basics/snippets/markdown.json @@ -23,14 +23,14 @@ "prefix": "fenced codeblock", "body": [ "```${1:language}", - "$0", + "${TM_SELECTED_TEXT}$0", "```" ], "description": "Insert fenced code block" }, "Insert heading": { "prefix": "heading", - "body": "# ${1:text}", + "body": "# ${1:${TM_SELECTED_TEXT}}", "description": "Insert heading" }, "Insert unordered list": { @@ -60,12 +60,12 @@ }, "Insert link": { "prefix": "link", - "body": "[${1:text}](https://${2:link})$0", + "body": "[${TM_SELECTED_TEXT:${1:text}}](https://${2:link})$0", "description": "Insert link" }, "Insert image": { "prefix": "image", - "body": "![${1:alt}](https://${2:link})$0", + "body": "![${TM_SELECTED_TEXT:${1:alt}}](https://${2:link})$0", "description": "Insert image" } } -- GitLab