Closed fidel-perez closed 5 months ago
Really good idea that should be pretty easy to do. Will look into it.
+1 to this. I would like to use this to have pass Templater an argument from the current file that it uses to create a new file.
has this been implemented?
It would be great to have also a button that only runs a template.
Why? Because then we could run templates like the following to, for example (in the code below), replace all the checked boxes for unchecked ones, without adding any text to the note:
Right now I do the trick of using append then removing that appended text:
noteContent.split("<%*")[0]
But this works randomly depending on some speed of an internal process that appends the templater text to the note (because thats the button I am using).This works perfectly when applying the template using templater command, but with buttons we cannot replicate because of the extra text insertion.
This feature would allow us to run any javascript to modify the current note using templater, I think it would be pretty cool :)
Thank you!