mara-li3k downloadsAdd a button in the file header, in edit mode, to switch between source and live-preview.
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:
All icons will be displayed for each mode in the file header, like this:

The active mode will be highlighted, and the highlight will move when switching modes:

[!note] The Reading button is the default button. Its icon will change when switching to one of the edit modes.
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 behaviorButtons in the three-mode layout will get the is-active class when necessary.
https://github.com/Mara-Li/obsidian-shortcuts-LP_Sourceshortcuts-edit-mode.zip into the .obsidian/plugins/ path