Make button to switch views in tab title bar more intuitive

There is a community plugin that does almost exactly this: Edit mode switch - Obsidian Plugin. It has three settings but the third is directly relevant:

“All button” mode — Each mode (Source, Live Preview, and Reading) is separated.
It looks like this.

Screenshot 2026-10-14 16.33.30

It was my first community plugin to install. Claude Opus 5.5 gave it a clean bill of health!

I get the impression that Live Preview was retrofitted into the existing Reading/Editing view, which why there are two separate toggles (reading vs editing, and source vs LP) – sometimes requiring two clicks to get where you want.

View Mode
1 Reading N/A
2 Editing Source
3 " Live Preview

If you just want to fix the top-right toggle so that it’s not the opposite of the bottom-right toggle, the CSS here works: Button to switch view in tab title bar reflects current view.

The plugin also solves the problems mentioned here, directly or indirectly: