Force note view mode for Obsidian
Force the view mode (edit or preview) for a note by specifying a frontmatter key 'obsidian_ui_mode'. This allows per-note control of whether the note opens in edit or preview mode.
Chinese summary
通过在前置元数据中设置 'obsidian_ui_mode' 键来强制指定笔记的视图模式(编辑或预览),实现每个笔记独立控制打开时的默认视图。
Key Use Cases
- Setting a daily note to open in edit mode.
- Setting a reference note to open in preview mode.
- Managing notes with mixed content types.
Pros
- Simple and flexible per-note control.
- Works with any note that has YAML frontmatter.
Limitations
- Requires manual addition of frontmatter to each note.
- No graphical interface to set the mode.
Tags
Related Plugins
Templater
Templater is a powerful templating plugin that lets you create reusable note templates with dynamic content—dates, random picks, file metadata, and even JavaScript functions. It replaces and extends Obsidian's built-in templates.
QuickAdd
QuickAdd lets you create custom commands to quickly capture thoughts, add to lists, or create new notes from anywhere in Obsidian. It's a powerful capture and automation tool for building personalized workflows.
Editing Toolbar
A highly customizable editing toolbar that provides built-in editing commands for a MS Word-like experience, modified from the cMenu plugin.
Get the best Obsidian plugins in your inbox
Monthly picks: top new plugins, hidden gems, and curated plugin stacks for different workflows.