No description
Find a file
2026-07-17 03:24:50 +02:00
.github/workflows Remove github atestations 2026-07-17 02:58:06 +02:00
screenshots Add proper README 2026-07-17 01:50:10 +02:00
src Small docs fixes before publishing 2026-07-17 02:10:26 +02:00
.editorconfig Initial commit 2026-07-15 20:35:31 +02:00
.gitignore Initial commit 2026-07-15 20:35:31 +02:00
.npmrc Initial commit 2026-07-15 20:35:31 +02:00
AGENTS.md Initial commit 2026-07-15 20:35:31 +02:00
DEV_INSTRUCTIONS.md Small docs fixes before publishing 2026-07-17 02:10:26 +02:00
esbuild.config.mjs Update banner and versions to fix github 2026-07-17 03:24:50 +02:00
eslint.config.mts Initial commit 2026-07-15 20:35:31 +02:00
LICENSE Small docs fixes before publishing 2026-07-17 02:10:26 +02:00
manifest.json Update banner and versions to fix github 2026-07-17 03:24:50 +02:00
package-lock.json 1.0.1 2026-07-17 02:58:09 +02:00
package.json Update banner and versions to fix github 2026-07-17 03:24:50 +02:00
README.md Fix styling rules 2026-07-17 03:22:15 +02:00
styles.css Fix styling rules 2026-07-17 03:22:15 +02:00
tsconfig.json Fix typescript configuration 2026-07-16 17:49:10 +02:00
version-bump.mjs Initial commit 2026-07-15 20:35:31 +02:00
versions.json 1.0.1 2026-07-17 02:58:09 +02:00

Editor Mode Button

I made this plugin because Obsidian only has a "Default editing mode for new notes" setting, and that never felt like enough to me. I wanted notes to work more like Vim modes or a blog editor: one clear mode for reading, and one clear mode for editing.

It makes the separation between editing mode and reading mode clear. When you switch Default view for new tabs, it applies not only to newly opened files, but also to the ones that are already open.

CSS

You can easily change how Obsidian looks in both modes. Just create a CSS file in your vault, and set its path in the settings.

body.emb-use-default-styles.emb-mode-source .view-header {
	--file-header-background-focused: rgb(45, 25, 0);
	--file-header-background: rgb(25, 0, 0);
}

body.emb-use-default-styles.emb-mode-preview .view-header {
	--file-header-background-focused: rgb(25, 25, 25);
	--file-header-background: rgb(0, 0, 0);
}

All styles that should be visible in a specific mode should be placed either in the body.emb-mode-source selector (for editing mode), or in body.emb-mode-preview (for reading mode). The custom CSS will override the default styles.

Default reading mode

Reading Mode Top Bar

Default editing mode

Editing Mode Top Bar

Ribbon indicator

There's an indicator on the ribbon that shows which mode you are in. You can click it to quickly switch modes, and when you do, all open files will change their mode too.

Mode Indicator

Commands

Toggle default mode for new tabs is already a command, but due to the limitations of the Obsidian API it can take a second to register new CSS when using it. To avoid that delay, this plugin includes a new command:

Editor Mode Button: Switch editor mode and reload files.

You can add a keyboard shortcut for it if you feel like it, in the Hotkeys category in the Obsidian settings.