Templater icon indicating copy to clipboard operation
Templater copied to clipboard

tp.file.cursor() self-destruct

Open Ampa opened this issue 4 years ago • 0 comments

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?

Ampa avatar Apr 27 '21 11:04 Ampa