text-snippets-obsidian icon indicating copy to clipboard operation
text-snippets-obsidian copied to clipboard

[Feature Request] Add variable placeholders

Open gmkado opened this issue 3 years ago • 1 comments

Would be useful to have syntax similar to vscode's snippets: https://code.visualstudio.com/docs/editor/userdefinedsnippets#_placeholders

Especially the ability to have duplicate placeholders. For example:

console.log('$1'); // $1

Tab stops at $1 and if you replaced it with "whatever" you would get

console.log('whatever'); // whatever

gmkado avatar Dec 16 '21 19:12 gmkado

I am trying to add Google It snippet, with the start tag [ and the end tag ](https://google.com/search?q={selectedText}) but it adds {selectedText} as is. It'd be very helpful to have a backreference that could be used multiple times

temirov avatar Jun 01 '22 20:06 temirov