Hi, I have a plugin that only inserts text at the cursor's position. I'm aiming to include a button that is replaced by that inserted text.
I've tried <% tp.file.cursor() %> in various different syntaxes to no avail, with templater true included in the button each time. The closest I can get to this behavior is including <% tp.file.cursor() %> in the template (that includes the button) right before the button, in which case it works... but on the off chance I want to come back later and press the button, I have to remember to move my cursor manually ahead of the button first for it to work.
If there's some existing method to accomplish this, any help would be hugely appreciated - if not, having this supported would be a huge help. Thanks!
Hi, I have a plugin that only inserts text at the cursor's position. I'm aiming to include a button that is replaced by that inserted text.
I've tried
<% tp.file.cursor() %>in various different syntaxes to no avail, withtemplater trueincluded in the button each time. The closest I can get to this behavior is including<% tp.file.cursor() %>in the template (that includes the button) right before the button, in which case it works... but on the off chance I want to come back later and press the button, I have to remember to move my cursor manually ahead of the button first for it to work.If there's some existing method to accomplish this, any help would be hugely appreciated - if not, having this supported would be a huge help. Thanks!