You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the page its not clear how exactly to read or write property values with it. I think this code sample might help
// get the current file and check if the "Date Completed" property is blank (but also present). If so then set it to the current time with MomentJSletfile=app.workspace.getActiveFile();awaitapp.fileManager.processFrontMatter(file,(fm)=>{if(fm["Date Completed"]===null){fm["Date Completed"]=moment().format("YYYY-MM-DD");}});
The text was updated successfully, but these errors were encountered:
https://docs.obsidian.md/Reference/TypeScript+API/filemanager/processFrontMatter
On the page its not clear how exactly to read or write property values with it. I think this code sample might help
The text was updated successfully, but these errors were encountered: