Plugin

Force note view mode

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

  • Overview
  • Updates
  • Privacy
Indicate view and editing modes for individual notes using front matter. Set `obsidianUIMode` to "source" or "preview" and `obsidianEditingMode` to "live" or "source" to enforce your preferences. Ensure notes always open in the specified mode, overriding default settings.

Obsidian force note view mode

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.

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

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 a reading (/ preview) 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).

Created
Aug 8, 2021
Last updated
Dec 7, 2023
Updates
11 releases
Downloads
58.6k
Compatible with
0.9.12+