chhoumann / MetaEdit

MetaEdit for Obsidian

Home Page:https://bagerbach.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update Frontmatter doesn't work

vialcollet opened this issue · comments

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?