shabegom / buttons

Buttons in Obsidian
The Unlicense
455 stars 47 forks source link

Templater prompts with button 'remove' option #57

Closed ConnorMeyers closed 2 years ago

ConnorMeyers commented 3 years ago

When templater prompts are mixed with a button to replace the templates and also set to remove, the button doesn't get removed. (likely because the template prompt reinserts it)

<% tp.system.prompt("Enter text.") %>

button
name Finish
type command
action Templater: Replace templates in the active file
remove true
shabegom commented 3 years ago

Yep! I was also having this problem. I'll look into it. Thanks for reporting!

shabegom commented 2 years ago

I think this will be fixed in the next release. Just working on another bug and then will push out a new version. Basically, I'm delaying the remove a little bit longer so it happens after Templater has finished processing the note.

shabegom commented 2 years ago

Should be fixed in 0.4.12