Repository navigation
Copy markdown source, gradient icon, and renderer modularization - #21
Merged
Merged
Conversation
…ntainable Add a copy-source button and Cmd/Ctrl+Shift+C shortcut so the raw markdown of the active document can be copied. Harden review findings: guard recent-docs JSON parsing, reset the copy-button confirmation on tab switch, rename the sidebar pane switcher, and skip the file-watch reparse when no window is open. Split renderer.js into ES modules and load it with type=module so no source file exceeds the 1000-line limit.
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
Cmd/Ctrl+Shift+Ccopy the raw markdown of the active document to the clipboard (clipboard write routed through the main process).renderer.js(was 1196 LOC) is split into ES modules undermodules/and loaded withtype="module";styles.css(was 1100 LOC) is split intocss/partials combined via@import. No source file now exceeds the 1000-line limit.JSON.parse, reset the copy-button confirmation on tab switch, renamed the sidebar pane switcher (switchSidebarPane), and skipped the file-watch reparse when no window is open.Commits
morph the logo M through the palette as an edge-to-edge gradientsplit the stylesheet into concern files to stay within the 1000-line limitlet users copy a document's markdown source and keep the renderer maintainableValidation
sourceType: moduleblock for the renderer files).package.jsonbuild.filesnow bundlesmodules/**/*.jsandcss/**/*.css; verified they ship insideapp.asar.docs/REVIEW.md.