MetaEdit icon indicating copy to clipboard operation
MetaEdit copied to clipboard

Update Frontmatter doesn't work

Open vialcollet opened this issue 2 years ago • 0 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?

vialcollet avatar Jan 13 '23 15:01 vialcollet