Templater icon indicating copy to clipboard operation
Templater copied to clipboard

<% tp.file.cursor(1) %> not triggered when inserting a template into a note

Open Oratoriooooo opened this issue 1 year ago • 2 comments

my setting

image

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 image to get cursor jump to location I want.

Oratoriooooo avatar Jul 12 '22 08:07 Oratoriooooo

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.

AB1908 avatar Jul 12 '22 12:07 AB1908

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?

welpdx avatar Jul 12 '22 17:07 welpdx