Repository navigation
Conversation
Art-Porto
force-pushed
the
markdown-toolbar-buttons
branch
from
November 14, 2026 21:18
1e59610 to
4b4becf
Compare
Reading mode now only turns off from its toggle (menu, toolbar button or shortcut). Double-clicking a paragraph in reading mode moves the hidden editor's caret to that line without scrolling, so toggling off lands on the paragraph. The preview panel keeps jumping to the source. Reading mode also refreshes after a file is reloaded from disk. Reloading detaches the editor from its document, so no SCN_MODIFIED reaches the plugin, and Notepad++ only re-activates the buffer afterwards. A reading view that kept the same document now renders again on that activation instead of showing the old text until another tab is selected.
Art-Porto
force-pushed
the
markdown-toolbar-buttons
branch
from
November 15, 2026 22:30
4b4becf to
81b51f4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SCN_MODIFIEDreaches the plugin; the reading view now renders again when Notepad++ re-activates the buffer, instead of showing the old text until another tab is selected.Testing
Screenshots
Captured in Notepad++ 8.9.8.1 (x64) with the build from this PR and a sample Markdown file.
Reading mode
Click the blue book to render Markdown in the editor area. Click it again to return to the source.
Side preview
Click the green window to show the live preview next to the editable Markdown source.
Both modes active
Both buttons can be active together. Turning off Reading Mode returns the left pane to the source while the side preview stays open.