shabegom / buttons

Buttons in Obsidian
The Unlicense
477 stars 50 forks source link

Remove multiple Buttons with the Inline Button in another note #148

Closed Kniggebogge closed 8 months ago

Kniggebogge commented 1 year ago

Hello there,

I created now some buttons and would like to delete all other, which are not hit. My buttons like:

name 1045BF
type prepend text
action #1045BF
remove [1045, 1044, 1043, 1042, 1041, 1040, 1039, 1038, 1037]

^button-1045

name 1044BF
type prepend text
action #1044BF
remove [1045, 1044, 1043, 1042, 1041, 1040, 1039, 1038, 1037]

^button-1044

name 1043BF
type prepend text
action #1043BF
remove [1045, 1044, 1043, 1042, 1041, 1040, 1039, 1038, 1037]

^button-1043

If I now write in the same note button-1045 button-1044 button-1043 and hit one of them, all works well. There is the created tag and the other buttons are gone. But if I do the same thing in another note, the button just create the tag and removes itself. The other one will be still there.

What do I wrong? Thanks!