Steps to reproduce
- Create empty note (any note without a yaml header will do), make sure it is the active note.
- Open developer console.
- Run this code:
let thisNote = app.workspace.getActiveFile()
let callback = (f) => {f.test = "hello"}
app.fileManager.processFrontMatter(thisNote, callback)
Did you follow the troubleshooting guide? [Y/N]
Yes, I’ve confirmed this behavior in the sandbox vault.
Expected result
Note content
---
test: hello
---
Actual result
Note content:
test: hello
Environment
SYSTEM INFO:
Obsidian version: v1.5.5
Installer version: v1.4.13
Operating system: Windows 10 Home 10.0.22631
Login status: logged in
Catalyst license: vip
Insider build toggle: on
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on
RECOMMENDATIONS:
none