buttons
buttons copied to clipboard
Template is prepended inside the button's code
I'm using a button to add a pre-filled new row in a table. For that row I'm using templater because I need to run a script. It used to work for months and now it just broke recently. I use it once a week so I'm not sure if it's from Obsidian's recent update or Buttons' recent update.
Here's the code I'm using for the button:
button
name Ajouter une nouvelle photo
type prepend template
action Shuffle - new row
color purple
^button-newRow
And my template is a simple:
| n | <% tp.user.shuffle_values() %> | |
Here's what I get
https://github.com/shabegom/buttons/assets/1280069/7a604cca-5056-4c8e-b934-8cace002b6d9
Is that a regression or I'm just stupid?
Note that append
works fine for some reason.
Ah. Watched the video. Looks like the prepend offset is broken. Probably a regression.
This also happens when you use something like "type line(1) template" and "replace [1,100]" in view mode. Broke after the last update :(