Open SandmansDreams opened 3 months ago
I haven't looked at this closely, but my first guess is that Obsidians metadata cache (where I am pulling the line positions from) has not updated yet, so the line positions are wrong.
I haven't looked at this closely, but my first guess is that Obsidians metadata cache (where I am pulling the line positions from) has not updated yet, so the line positions are wrong.
Hmm that could make sense. It does not appear to remove any other lines, just seems to not happen. But could still be the case.
Does any error appear in the console?
Does any error appear in the console?
As far as I can tell, no. There were several errors before I cleared it and then ran the button. However, none of these errors seem to pertain to the button.
Please fill out these Check-boxes
Plugin Version
1.1.3
This Issue Occurs on
Debug Info
Describe the Issue
When using a multi-action button and having the replaceself function, it only works (gets rid of the button) if the command function is run after the replaceself function. In this case it is a command for templater to replace the active templates in the file. Seems to work fine with other commands including other templater commands.
Steps to Reproduce
Run this button:
This button works (flipped the locations of the replaceself and templater converter):
Expected Behavior
The second button functions as expected. The first button does everything except the replaceself command.