Default View Mode

by sunzyyu
5
4
3
2
1
Score: 35/100

Description

This plugin has not been manually reviewed by Obsidian staff. Set a default view mode (reading or editing) for each note via frontmatter.

Reviews

No reviews yet.

Stats

stars
downloads
0
forks
1
days
NaN
days
NaN
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
0
commits

Latest Version

Invalid date

Changelog

README file from

Github

Default View Mode

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.

Features

  • Per-note default view — each note remembers its preferred view mode through a simple frontmatter field
  • Automatic switching — the view switches as soon as you open a note, no extra clicks
  • Command palette support — three commands to set or clear a note's default view without leaving the keyboard
  • Zero-config — no settings tab, no global toggles; everything is controlled at the note level

How It Works

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
---

Commands

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

Installation

Once accepted, this plugin will be available in the Obsidian Community Plugin gallery.

Manual Installation

  1. Download main.js, manifest.json, and styles.css from the latest release
  2. Copy them into {vault}/.obsidian/plugins/default-view-mode/
  3. Reload Obsidian and enable the plugin under Settings → Community Plugins

Compatibility

  • Requires Obsidian 1.12.0 or later
  • Works on desktop and mobile

License

MIT