Mode manager
approvedby dk949
Provide an easier way to manipulate reading/editing and preview/source mode
Mode manager
This plugin adds dedicated commands to switch to specific modes (reading, source and live preview), rather than relying on the default toggle behaviour.
Commands
| Name | Description | ID (for use in scripting) |
|---|---|---|
| Mode manager: Switch to reading | Switch to reading mode | mode-manager:switch-to-reading |
| Mode manager: Switch to live preview | Switch to live preview mode (edit with formatting preview) | mode-manager:switch-to-live-preview |
| Mode manager: Switch to source | Switch to source only edit mode | mode-manager:switch-to-source |
| Mode manager: Switch to edit | Switch to edit mode and maintain existing source or preview setting | mode-manager:switch-to-edit |
| Mode manager: Switch to next mode | Cycle through modes in sequential order: reading, source, preview | mode-manager:switch-to-next-mode |
Special properties
You can use a special property (default-mode by default, can be changed in
settings) to automatically switch to a specific mode when opening the file.
Below is more about the available values.
Available values
The value of the special property must be one of:
editpreviewsourcereading
Any other value will be ignored and a notice will be shown.
[!NOTE] This is currently broken for daily notes opened on startup.
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.