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

Edit mode switch

MaraMara3k downloads

Add a button in the file header, in edit mode, to switch between source and live-preview.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates13

Add a button to the file header in edit mode to switch between Source and Live Preview.

Doesn't work if Live Preview or the file header is disabled.

There are three settings:

  • Reverse button icons — Display the next mode button instead of the current one. For example, if you are in Live Preview, it will display the Source icon instead of the Live Preview icon.
  • Include reading mode — Include Reading mode in the switch. One button will cycle through a configurable order.
  • "All button" mode — Each mode (Source, Live Preview, and Reading) is separated. This mode is not compatible with the two other options.

All button mode

All icons will be displayed for each mode in the file header, like this: Obsidian file header with the default theme displaying the three icons for each mode

The active mode will be highlighted, and the highlight will move when switching modes: Obsidian file header in Live Preview mode, displaying the three icons where the active mode is highlighted with the `is-active` class. Obsidian file header in Source mode, displaying the three icons where the active mode is highlighted with the `is-active` class. Obsidian file header in Reading mode, displaying the three icons where the active mode is highlighted with the `is-active` class.

[!note] The Reading button is the default button. Its icon will change when switching to one of the edit modes.

Styling

The plugin uses the following CSS classes:

  • .edit-mode-button: Button added in the file header
  • .edit-mode-hide: Class used to hide the Reading button
  • .edit-mode-default-button: Reading button in the three-mode behavior

Buttons in the three-mode layout will get the is-active class when necessary.

📥 Installation

  • From Obsidian's community plugins
  • Using BRAT with https://github.com/Mara-Li/obsidian-shortcuts-LP_Source
  • From the release page:
    • Download the latest release
    • Unzip shortcuts-edit-mode.zip into the .obsidian/plugins/ path
    • In Obsidian settings, reload the plugin
    • Enable the plugin
HealthExcellent
ReviewSatisfactory
About
Add a file-header button to switch between Source, Live Preview, and Reading modes. Use a single cycling button or display separate icons for each mode with active highlighting, and optionally show the next-mode icon instead of the current one. Requires file header and Live Preview enabled.
EditingInterfaceCommands
Details
Current version
0.0.10
Last updated
2 weeks ago
Created
2 years ago
Updates
13 releases
Downloads
3k
Compatible with
Obsidian 1.5.12+
Platforms
Desktop, Mobile
License
GPL-3.0
Report bugRequest featureReport plugin
Sponsor
Ko-fi
Author
MaraMaramara-li
github.com/Mara-Li
GitHubmara-li
  1. Community
  2. Plugins
  3. Editing
  4. Edit mode switch

Related plugins

Meta Bind

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

Commander

Customize your workspace by adding commands everywhere, create macros and supercharge your mobile toolbar.

Note Toolbar

Add customizable toolbars to your notes.

Dragger

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

Hover Editor

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

Keyshots

Add classic hotkey/shortcuts commands from popular IDEs like Visual Studio Code or JetBrains Family.

Paste URL into selection

Paste URL "into" selected text.

Tray

Run Obsidian from the system tray for customisable window management and global quick notes.

Hotkey Helper

Easily see and access any plugin's settings or hotkey assignments (and conflicts) from the Community Plugins tab.

Lean Terminal

Embedded terminal panel powered by xterm.js and node-pty - no external windows.