Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Templater insert briefly appears then disappears #173

Closed
aschearerehg opened this issue Apr 4, 2023 · 2 comments
Closed

Templater insert briefly appears then disappears #173

aschearerehg opened this issue Apr 4, 2023 · 2 comments

Comments

@aschearerehg
Copy link

aschearerehg commented Apr 4, 2023

Pressing the following button briefly shows the text. The text is not added to the document when switching to edit `mode.

name Log
type append text
action Hello
templater true

The following works, appending text to the doc:

name Log
type append text
action Hello

Obsidian: 1.1.16
Buttons: 0.4.19

@marvelty
Copy link

marvelty commented Apr 17, 2023

I am also having this issue - any button that includes "templater true" causes the appended/prepended text to flash in then immediately delete. This includes both simple text as in the example above, and content pulled from a template note. Button works as intended when "templater true" is removed from the code.

When including "templater true" it will also undo recent edits to the file; for example if I edit the last line of text, then use a button with function "append text" it will revert my edit, then flash in the appended text, then delete the appended text, leaving only the reverted text. Waiting a minute or two between editing and hitting the button avoids the reverting behaviour but still only flashes up the text I'm trying to append.

Obsidian: 1.1.16
Buttons: 0.4.19

Edit to add -- After digging deeper it looks like this is a fairly old issue (Essentially the same as #95) that continues to be a problem ...

@lightheaded
Copy link

I think I'm seeing this, too: https://forum.obsidian.md/t/button-template-insertion-briefly-flashes-the-message-and-erases-it/66037

Mentioned here as well: #191

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants