Templater icon indicating copy to clipboard operation
Templater copied to clipboard

Add an option to autoremove escape characters when the template is being pasted into a file

Open DimasDSF opened this issue 2 years ago • 0 comments

Currently using any Obsidian syntax such as #tag [[file]] with commands in them causes a creation of an ugly link from the template file itself. We can prevent the syntax from creating links and tags by using the \ escape character in front of the special symbols but then the template pasted has those links disabled as well.

The option could be a command such as tp.file.cursor eg. tp.file.remove_escape_characters that will then be run when the template has finished pasting and will unescape the newly created tags, links etc.

While this probably could be achieved by using tp.file.cursor_append with string split it would be ugly, hard to use, and take up a lot of space

DimasDSF avatar Apr 16 '22 17:04 DimasDSF