shabegom / buttons

Buttons in Obsidian
The Unlicense
455 stars 47 forks source link

Append is not working with Templater actions #95

Closed awlobo closed 5 months ago

awlobo commented 2 years ago

Hi! I don't know if I'm doing something wrong, but it seems that the text generated by the template, does not stay in the file, as you can see in the video below.

https://user-images.githubusercontent.com/10184549/149659873-4c87f8a0-4939-4f55-bd9d-87d39373c782.mp4

```button  
name Log  
type append text  
action <% tp.date.now("HH:mm") %>  
templater true  
\```

Thanks and please let me know if you need more details 😄

rossoj85 commented 2 years ago

I'm having the same issue. Any solution to this?

ghost commented 2 years ago

Same issue there

TfTHacker commented 2 years ago

Ditto

xeor commented 1 year ago

Is there any temporary fix that anyone know about so we can use templater and append?

awlobo commented 1 year ago

Using this workaround does it for me: https://github.com/shabegom/buttons/issues/153#issuecomment-1369028009

julian-poidevin commented 1 year ago

Same issue here

upaulnight commented 1 year ago

I'm having the same issue here. When running the example code that replaces the date at the top of the note with the current time, it shows the right text for a split second, but then reverts to what the line was before. I'm not sure how integrate the bug fix pull requests, but I'm hoping it can get merged soon so the buttons can actually be functional