Skip to content

Edit mode with live preview, using the shared markdown-editor package - #39

Merged
sorenwacker merged 12 commits into
mainfrom
feature/edit-mode
Sep 18, 2026
Merged

sorenwacker merged 12 commits into
mainfrom
feature/edit-mode

Conversation

@sorenwacker

Copy link
Copy Markdown
Owner

Summary

  • Edit mode per tab (Cmd/Ctrl+E): editor on the left, live preview on the right (rendered by the main process 300 ms after typing pauses), outline follows the preview.
  • Explicit saving (Cmd/Ctrl+S), modified marker in header and tab bar, confirmations before closing a modified tab, reloading it, or closing the window with unsaved edits.
  • Changes on disk: unmodified tabs update in place; modified tabs keep their edits and show a Reload / Keep Mine banner. The app's own save is not reported as an external change.
  • save-file only writes to documents open in a tab.
  • The editor is the shared markdown-editor package (v1.0.0, extracted from graph-core), bundled with esbuild into vendor/ before start, test, and build. A boundary test fails if renderer code imports CodeMirror directly or redefines the package's functions.
  • Tests no longer open app windows; npm run test:headed shows them.
  • Release workflow publishes -rc tags as prereleases. Version 1.4.0-rc.1.

Behavior is specified in docs/editing.md.

Test plan

  • npm test: 90 passed locally (21 new edit-mode tests, boundary gate proven red with an injected CodeMirror import)
  • npm run lint clean
  • Clean npm ci with SSH disabled resolves the git dependency over HTTPS
  • CI on macOS and Windows

🤖 Generated with Claude Code

@sorenwacker
sorenwacker merged commit c528ae1 into main Sep 18, 2026
4 checks passed
@sorenwacker
sorenwacker deleted the feature/edit-mode branch September 18, 2026 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant