Commit Graph

6 Commits

Author SHA1 Message Date
dfe38890e0 fix: remember edit mode and scroll position per tab
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.
2026-11-03 22:09:34 +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
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
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