Adds a minor toggle to switch between view and edit mode for markdown. [In development release :smile: ]
Features
Adds a minor status bar toggle and command to add/remove editorAssociations configuration to view markdown documents in preview automatically. By default, this adds/removes an entry to the workspace's workbench.editorAssociations to display the custom preview editor for markdown [as seen in https://github.com/microsoft/vscode/issues/84520].
If markdown-reader.defaultmode is set to preview, automatically opens a markdown preview to the side instead.
If markdown-reader.commandmode is enabled, uses VSCode commands to open a preview instead of the custom editor.
Task bar icon : edit mode
Task bar icon : view mode
Mode toggle command
Extension Settings
This extension contributes the following settings:
markdown-reader.defaultmode: choose between preview or reader to open preview to the side or as the main editor when in reader mode
markdown-reader.alwaysenable: set to true to enable reader mode by default
markdown-reader.commandmode: set to true to use VSCode commands instead of config to open preview, minor screen flickering, plays better with search
Known Issues
When markdown-reader.commandmode is enabled, edit mode must be enabled to edit a document, otherwise it will revert to preview
When disabling/enabling markdown-reader.commandmode, extension reverts back to markdown edit mode
In the default mode, the custom markdown viewer does not scroll to the exact line when file is open from search results at the moment
markdown-reader.commandmode: When enabled minor screen flickering is seen as current editor is closed and preview is opened instead, there is no easy workaround for this
Acknowledgements
ionicons [https://github.com/ionic-team/ionicons] from the Ionic team for their eye!
Release Notes
0.0.1
Beta release of markdown-readermode with basic features