Skip to content

draft plugin for activating some obsidian command pallet actions from a .md file's front matter

License

Notifications You must be signed in to change notification settings

drunkzurg/obsidian-force-fold-mode-of-note

Repository files navigation

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. This is done through the key obsidianUIMode, which can have the value source or preview.

Add below snippet (front matter) to your note ...

---
HeaderState: fold
---

... and this will force the note to fold all headings & lists.

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

---
HeaderState: unfold
---

... and this will force the note to unfold all headings & lists.

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

About

draft plugin for activating some obsidian command pallet actions from a .md file's front matter

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published