Commit Graph

20 Commits

Author SHA1 Message Date
d90e47e606 feat: make the UI English-only
- 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
2026-10-28 19:37:50 +08:00
809b7b0299 feat: add Home as the default tab
- 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
2026-10-28 18:21:53 +08:00
9ae2c134ad fix: keep detached windows on source monitor and refine tab actions 2026-10-28 17:02:46 +08:00
f9ccce066c fix: address multi-window review findings 2026-10-28 15:33:59 +08:00
85b20ece8a fix: disable detach when only one tab is open 2026-10-28 15:04:47 +08:00
5740274a86 feat: open a tab in a new window from its context menu 2026-10-28 14:53:05 +08:00
e24733ad96 feat: dedupe open documents and drop session restore 2026-10-28 14:46:40 +08:00
39deeac3f5 feat: create additional empty windows at runtime 2026-10-28 13:46:43 +08:00
7d4091ddad refactor: route events through per-window state 2026-10-28 13:39:33 +08:00
53c39af0c8 test: cover multiline math with soft-break rewrite 2026-10-27 11:56:52 +08:00
07ac99764f feat: widen markdown compatibility for AI output 2026-10-27 11:54:03 +08:00
b01553e421 feat: fixed-size chevron fold toggles
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.
2026-10-21 17:20:52 +08:00
097d2eeb0e fix: keep app closable when autosave fails
- 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
2026-10-21 17:07:11 +08:00
f74a04bd13 feat: fold heading sections with hover toggles
- 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
2026-10-21 16:53:03 +08:00
5cfc6224d4 fix: persist content zoom across restarts
localStorage is unavailable for the with_html page (about:blank opaque origin), so zoom was never saved. Store it in config_dir()/zoom.txt via the zoom:<pct> IPC message (400ms debounce) and restore it when the page reports ready.
2026-10-21 16:40:57 +08:00
9717dc9690 feat: always-dark VS code blocks, remove Find button
- Replace github light/dark hljs themes with assets/hljs/vs-dark.css (#1e1e1e bg, VS token colors)
- Drop the prefers-color-scheme stylesheet switch; code blocks stay dark in both themes
- Remove the toolbar Find button and its strings/icon; Ctrl+F and the findbar are unchanged
- Print keeps the dark background via print-color-adjust: exact
- Delete unused github.min.css / github-dark.min.css
2026-10-21 16:33:56 +08:00
1e8cbea902 feat: zoom content with Ctrl+wheel (5% step, 50-300%)
- Ctrl+wheel zooms preview and editor; 90ms throttle; preventDefault stops WebView2 page zoom
- Range widened to 50-300%, step unified at 5% for wheel, toolbar buttons and Ctrl +/-
- No mouse-anchor (same scrolling behavior as button zoom)
- Add agent/AGENTS.md: workspace boundary is the top rule; build/test temp dirs stay in target/
- build.ps1 redirects TEMP/TMP into target/tmp
2026-10-21 16:23:00 +08:00
e622aed670 feat: remove toolbar open/print buttons (keep Ctrl+O/Ctrl+P) 2026-10-21 16:14:31 +08:00
0ca339dcf7 fix: strip windows verbatim prefix and build valid file base url 2026-10-21 16:13:28 +08:00
f63aff47a8 chore: baseline md-preview 1.4.2 + agent workspace 2026-10-21 16:06:27 +08:00