I’m looking for something like VScode’s snippet fields where, when a template is inserted into a note or when a new note is created from a template, I’m left with input fields in the content where I can tab through the fields and add text to each. Is there such a thing?
I’m currently using templater system.prompt() but it becomes a bit messy when the number of inputs starts rising.
You could potentially try out tp.file.cursor() with or without numbers. That allows for cursor placement within your template, and it has commands (which can be connected to hotkeys) to navigate to the next cursor. See tp.file - Templater
It’s even allowed to define the same cursor multiple places, and insert the same text to all of those places at the same time. I use that in some button definitions where I need to insert a line number into 6 different locations, so using this I enter the number just once.
Note that it might be needed to enable the Settings > Templater > Automatic jump to cursor for this to work nicely.
OK, I think I have it. When the template is first inserted the text input marquee isn’t in the note and I have to tab to get it there. Once I have the marquee in the note I can use to tab between the cursor positions. It works but it’s easy to break it.