Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Force note view mode

bwydooghbwydoogh78k downloads

Force the view mode for a note by using frontmatter: YAML block with 'obsidian_ui_mode' as key.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates13

This plug-in allows you to indicate through front matter that a note should always be opened in a certain view mode or editing mode.

Installation

From within Obsidian:

  1. Open Settings → Community plugins and turn off Restricted mode if it is on.
  2. Select Browse, search for "Force note view mode" and select Install.
  3. Select Enable.

Manually:

  1. Download main.js, manifest.json and styles.css from the latest release.
  2. Copy them to <your vault>/.obsidian/plugins/obsidian-view-mode-by-frontmatter/.
  3. Reload Obsidian and enable Force note view mode under Settings → Community plugins.

The plug-in requires Obsidian 1.1.0 or later. Release assets come with artifact attestations; verify a download with gh attestation verify main.js --repo bwydoogh/obsidian-force-view-mode-of-note.

Usage

Front matter

Changing the view mode can be done through the key obsidianUIMode, which can have the value source (editing view) or preview (reading view). Changing the editing mode happens by declaring the key obsidianEditingMode; it takes live (live preview) or source (source mode) as value.

You want Front matter
Reading view obsidianUIMode: preview
Editing view, live preview obsidianUIMode: source + obsidianEditingMode: live
Editing view, source mode obsidianUIMode: source + obsidianEditingMode: source

When only obsidianUIMode: preview is set (in front matter or through a folder or file rule), switching to editing uses the obsidianEditingMode of the note if it has one, and Obsidian's default editing mode otherwise.

Example: add below snippet (front matter) to your note ...

---
obsidianUIMode: source
obsidianEditingMode: live
---

... and this will force the note to open in "live preview" edit mode.

Similar, ... add below snippet to your note ...

---
obsidianUIMode: preview
---

... and this will always open the note in reading view (Obsidian calls this mode preview internally).

Folder and file rules

Under Settings → Force note view mode you can force a mode without touching the notes themselves:

  • Folders: every note in the folder (and its subfolders) opens in the chosen mode.
  • Files: every note whose name matches a regular expression opens in the chosen mode, for example - All$ for notes ending in " - All" or 1900-01 for daily notes starting with "1900-01".

Rules take precedence over front matter, and file rules take precedence over folder rules. Within a list, a lower rule wins over a higher one, so put child folders below their parent folder. Choose default to leave the matching notes alone.

Other settings

  • Ignore opened files: never change the mode of a note that was already open.
  • Ignore force view when not in frontmatter: only change the mode of notes that declare one, or that match a rule.
  • Debounce timeout in milliseconds: how long to wait before setting the mode (300 by default, 0 turns debouncing off). Increase it if the mode does not stick.

Default mode

This plug-in also ensures that a note is always opened in the configured default mode (suppose the Obsidian setting has "preview" as default mode but the pane is currently in "source" mode, then opening a new note in that same pane will open in "preview" mode).

HealthExcellent
ReviewPassed
About
Force the view mode and editing mode of a note through the front matter keys ‘obsidianUIMode’ and ‘obsidianEditingMode’, or per folder or file pattern.
EditingPropertiesInterface
Details
Current version
1.3.0
Last updated
3 hours ago
Created
5 years ago
Updates
13 releases
Downloads
78k
Compatible with
Obsidian 1.1.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
bwydooghbwydoogh
i-net.be
GitHubbwydoogh
  1. Community
  2. Plugins
  3. Editing
  4. Force note view mode

Related plugins

Meta Bind

Make your notes interactive with inline input fields, metadata displays, and buttons.

Editing Toolbar

The Editing Toolbar is modified from cMenu, which provides more powerful customization settings and has many built-in editing commands to be a MS Word-like toolbar editing experience.

Hover Editor

Transform the Page Preview hover popover into a fully working editor instance.

MetaEdit

Manage your metadata.

Cursor-Smith

Forge your cursor with the most advanced cursor engine there is!

Front Matter Title

Define a title in frontmatter to be displayed as the filename.

Dragger

Drag and drop any block (paragraphs, headings, lists, etc.) to rearrange content like Notion.

Advanced Canvas

Supercharge your canvas experience. Create presentations, flowcharts and more.

Hider

Hide interface elements such as tooltips, status bar, titlebar, and more.

LanguageTool Integration

Advanced grammar and spell checking, powered by LanguageTool.