Templater
Templater copied to clipboard
<% tp.file.cursor(1) %> not triggered when inserting a template into a note
my setting
what I did
my template that is inserted
sql codeblock.md path: 002 Utility/Template
```sql
<% tp.file.cursor(1) %>
```
what I want
I want cursor automatically jump into code block when I insert this codeblock template.
issue
currently I have to manually trigger
to get cursor jump to location I want.
Hmm wonder if it has to do with being in a code block. I guess you could get around this with a tp.system.prompt
although it's slightly different behavior. I also think cursor misbehaving is a known issue.
Your template works as intended for me on Win 10.
What system are you using?
Also, are you inserting it using Alt + E
Templater: Open Insert Template modal" not
Templates: Insert template` (from the built in templates plugin) right?