Update Frontmatter doesn't work
vialcollet opened this issue · comments
Bastien Vial-Collet commented
Hi need to prompt the user for the note scope and then:
- update frontmatter scope field
- move the file in the corresponding folder
I tried this code in my template but frontmatter isn't updated, no error displayed:
<%
const {update} = this.app.plugins.plugins["metaedit"].api
scope = await tp.system.suggester(["Cwt", "Curuba"], ["Cwt", "Curuba"])
await update("scope", scope, tp.file)
await tp.file.move("/" + scope + "/Projects/" + tp.file.title())
%>
Any idea?