chhoumann / MetaEdit

MetaEdit for Obsidian
https://bagerbach.com
GNU General Public License v3.0
393 stars 15 forks source link

Update Frontmatter doesn't work #89

Open vialcollet opened 1 year ago

vialcollet commented 1 year ago

Hi need to prompt the user for the note scope and then:

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?