Closed Osuppa closed 5 months ago
The error is when executing prompt const and filenameNote let
<%* const templateNote = tp.file.find_tfile("NoteTemplate"); const folderNote = app.vault.getAbstractFileByPath("Notas"); let prompt = await tp.system.prompt("Nome da nota:"); let filenameNote = await prompt; await tp.file.create_new(templateNote, filenameNote, true, folderNote); %>
I'm seeing that the await is strangely cleaning the button command content
Could this be because you have "Trigger Templater on new file creation" enabled?
should be fixed. reopen if still an issue.
I'm using the code below and my button content is disappearing after the execution (that isn't supposed to happen)