- delete the macOS/Linux/Finder-extension code, the non-Windows branches and
the objc2 dependencies; three platform-only tests went with them (62 -> 59).
- src/config.rs: config dir, zoom, window geometry and the blocking dialogs.
- move the test module to the end of main.rs (clippy items_after_test_module).
- main.rs 3709 -> 2822 lines. No behavior change on Windows.
- assets/page/{page.html,page.css,page.js} now hold the UI. build_page only
fills __MDP_*__ placeholders, so editing the page no longer means escaping
braces inside a format! string. Output was verified byte-identical for the
home page, a math/mermaid document and the startup page.
- src/markdown.rs: md -> html pipeline (GFM, AI-output dialect, front matter,
embedded images, ==highlight==, heading ids).
- src/page.rs: page assembly.
- src/escape.rs: shared JS/HTML escaping.
- src/main.rs drops from 5535 to 3709 lines. No behavior change; 62 tests.
- AGENTS.md: new files and module splits need no approval; bug fixes,
refactors, tests and docs can be done directly with one commit each.
Only out-of-repo changes, releases, new third-party code and invariant
changes still stop for a decision. Adds the exe-size and readability
invariants.
- HANDOFF/STATUS/roadmap/README: correct the stale test count, file
sizes, session-restore claims and session.json entry; record per-tab
edit mode/scroll, the .txt removal, and the open editor-styling design
question.
- base64_encode uses div_ceil plus a slice loop (clippy: manual_div_ceil,
chunks_exact_to_as_chunks); add known-vector tests.
- macOS-only UserEvent variants no longer warn on Windows.
- needless borrow, needless bool, and a collapsible match arm in the
Destroyed handler.
- build.ps1 no longer treats the word "powershell" as an updater marker;
it now checks Start-Process / Invoke-WebRequest instead.
Plain text was listed in the open, locate and link handlers but the file
dialog never offered it for new files, and a .txt opened through the app
behaved like Markdown without being one. Drop the extension everywhere so
the supported set is one list: md, markdown, mdown, mkd.
Edit mode used to live on the window, so switching tabs carried the mode
across documents, and the viewport stayed at whatever pixel the previous
document had scrolled to.
- DocumentTab now owns editing and scroll_ratio.
- The page reports edit-mode and scroll changes by tab id; Rust restores
them when the tab is activated. Reports carry the id so a late report
cannot land on the tab that just became active.
- Detaching a tab keeps its edit mode instead of forcing preview.
- build.ps1: dev build only; no copy to a fixed exe
- publish.ps1: user-run Medium publish to Nutstore
- docs: workspace stays D:\Scripts\md-preview, repo under AgentLowWorking
- .gitignore: local test/ scratch directory
Ctrl+F fills the find box from the current preview selection, anchors the first hit to that selection, and suppresses scroll when the find box opens. Typed queries still start from the current viewport and next/previous still reveal their target.
Tab inserts two spaces, Shift+Tab outdents selected lines, and Enter carries the current line's leading whitespace. Native textarea undo is preserved and IME composition is left alone.
- Remove locale detection and the Chinese Strings set
- Label the new-tab page New Tab instead of Home
- Use Untitled defaults for Finder-created files
- Drop the sys-locale dependency
- Model Home as a tab without a file path (Option<PathBuf>)
- + creates a Home tab; opening a file from Home reuses that tab
- Add a New File button to the Home page (replaces + for file creation)
- Closing the last file tab falls back to a Home tab
- Hide the tab strip while the only tab is Home
- Keep Home tabs out of detach, reveal, watcher, and duplicate checks
Use 30px hit area and 13.5x20 chevron (90% of the previous H2 marker) for every heading level, restore the outlined arrow, and keep it vertically centered to the left of the heading.
- Save failures now pause autosave for the file and show one warning instead of retrying every 700ms
- Closing the window after a failed save asks once to discard changes instead of looping on the error dialog
- Closing/switching a blocked tab asks before discarding its unsaved edits
- Widen preview/editor side padding to 48px and scale fold toggles with the heading font
- Wrap #preview children into nested section.mdp-fold/.mdp-fold-body by heading level
- Chevron button appears on heading hover; H2 folds to next H2, H3 to next H3, nested sections included
- No persistence: every render starts fully expanded
- Find auto-expands collapsed ancestors before scrolling to a hit
- Print expands all sections and hides the toggles