docs: allow modular code and refresh the handoff state

- 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.
This commit is contained in:
2026-11-03 22:11:52 +08:00
parent 8221eb5908
commit 44fe93ec20
5 changed files with 45 additions and 17 deletions

View File

@@ -14,7 +14,7 @@
- **完全离线**:不联网、不检查更新、无遥测;外部链接交给系统浏览器打开。
- **多标签 + 多窗口**:新标签页(New Tab)本身就是一个默认标签,标签栏的 `+` 新建一个 New Tab;在 New Tab 里打开文件会直接替换该标签(浏览器语义);关闭最后一个文件标签回到 New Tab,只剩 New Tab 时标签栏自动隐藏。标签右键可在新窗口打开,也可以上下拖动标签直接移出;同一文件全局只开一次,重复打开只聚焦;不恢复上次标签,启动显示最近文件、缺失文件可重新定位。
- **英文界面**:界面文案统一为英文,不随系统语言切换,避免中英文混排。
- **预览 / 编辑一体**:`Ctrl+E` 切换;编辑时 700ms 自动保存,`Ctrl+S` 立即保存。
- **预览 / 编辑一体**:`Ctrl+E` 切换;编辑模式与滚动位置按标签记忆,切回时恢复;编辑时 700ms 自动保存,`Ctrl+S` 立即保存。
- **编辑更顺手**:Tab 插入 2 个空格、Shift+Tab 反缩进,多行选区整体缩进;Enter 自动跟随上一行缩进;保留原生撤销。
- **长文档友好**:
- 鼠标移到标题左侧出现折角箭头,点击即可折叠到下一个同级标题(H1–H6);
@@ -114,6 +114,7 @@ backup/ 上游源码备份(本地保留,不入 git)
- 拖拽标签只用于移出到新窗口;不支持拖回、窗口合并或跨窗口同步编辑。
- 单换行按换行显示;如果源文件是按固定列硬折行的长段落,预览会保留这些断点,不随窗口宽度重排。
- 只读文件可以看、可以改,但保存会被拒绝(会明确提示,不会卡死)。
- 只识别 Markdown 扩展名(`.md` / `.markdown` / `.mdown` / `.mkd`);`.txt` 不再作为文档打开。
## 许可