Templater
Templater copied to clipboard
tp.file.cursor() self-destruct
A feature that I like in VSCode is that cursor tab-stops self-destruct (remove themselves) once the cursor enters any location that is not a cursor tab-stop.
Example situation… I have a YAML template with 5 cursor tab-stops, but I often only enter information in 2 or 3 of these locations. At present I have to delete the remaining <% tp.file.cursor() %> positions manually.
Preferred behavior… The remaining <% tp.file.cursor() %> positions are deleted when I click/move via the keyboard to any position that isn't one of the <% tp.file.cursor() %> (such as the body of the note, the note title, or another note).
Thoughts?