Set View Mode per Note
approvedby Alex Davies
Use YAML frontmatter to specify a view mode per note.
★ 16 stars↓ 2,638 downloadsUpdated 2y agoMIT
Obsidian Set View Mode per Note
This plugin allows you to set a view mode when opening specific notes. No configuration needed, just a single property at the top of any note.
This can be done via the prefer-view property, which can have the values read, edit, edit-source, or edit-preview.
Examples
---
prefer-view: read
---
This note will open in reading mode.
---
prefer-view: edit
---
This note will open in the preferred editing mode specified in 'Settings > Editor > Default editing mode'.
---
prefer-view: edit-source
---
This note will open in Source mode for editing.
---
prefer-view: edit-preview
---
This note will open in Live Preview mode for editing.
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.