• Stars
    star
    118
  • Rank 299,923 (Top 6 %)
  • Language
    TypeScript
  • Created over 3 years ago
  • Updated 12 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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