Thanks for this hint.
I wanted to be able to select a bit of text and then wrap it in a url scheme using the selected text as the alias and the end of the url. Taking a chance with Templater and your snippet, I did this:
[<% tp.file.cursor(1) %>](https://www.example.com/search= <% tp.file.cursor(1) %>)
While my select and trigger did not work, inserting the template did display 2 editing cursors, and when I typed in the text I wanted, both cursors worked to show it. (Kind of like multi cursor editing in VS Code or Android Studio for those developers out there).
Ultimately, I was able to create a QuickAdd Capture with a bit of custom code that does what I was hoping: select a bit of text and use that selection to build the url.
DionV