Skip to content

How to set the file name when creating new note from template? #277

Answered by SilentVoid13
LeducH asked this question in Help
Discussion options

You must be logged in to vote

Hey @LeducH, you can add the following command inside your template:

<% await tp.file.rename("prefix-" + tp.date.now()) %>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LeducH
Comment options

Answer selected by SilentVoid13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants