Sun Zhenyu21 downloadsSet a default view mode (reading or editing) for each note via frontmatter.
Set a default view mode — read or edit — for each note individually via frontmatter. Open your homepage in read view, your daily notes in edit view, and everything else however you like.
The plugin reads a view-mode key from each note's YAML frontmatter. When you open a note, it checks the key and switches to the matching view. If no key is set, Obsidian's default behavior is left unchanged.
---
view-mode: read
---
| Command | Description |
|---|---|
| Set view-mode: read | Adds view-mode: read to the active note's frontmatter |
| Set view-mode: edit | Adds view-mode: edit to the active note's frontmatter |
| Clear view-mode | Removes the view-mode key from the active note's frontmatter |
Once accepted, this plugin will be available in the Obsidian Community Plugin gallery.
main.js, manifest.json, and styles.css from the latest release{vault}/.obsidian/plugins/default-view-mode/MIT