Is it possible to call the output of a syntax to another syntax? I want to automate my journals so that the title automatically sets to the date I set up (daily, weekly, monthly, and yearly)
I tried using the syntax posted in the documentation but for some reason it doesn’t work
so you want to define a variable as date and then rename the note and more it to a certain place?
<%*
let date = tp.date.now("YYYY");
await tp.file.move("/400/year/" + date);
-%>
should do the trick, you don’t need to rename when you move.
btw: it seems to me that there is a problem with tp.file.title if you rename the note as it will not get the new name.