pub fn write_atomic(path: &Path, text: &str) -> Result<()>
Temp file next to path, then a rename: a reader (Obsidian’s file watcher, a git add) never sees half a note.
path
git add