Files
MooTool/next-compose/docs/diff/200-quicknote-vault-tree-selection.md
RememBerBerandCursor c834db2a83 feat(next-compose): 对照 Electron 落地 F00–F25 与 A01–A03 主体能力
将 Vault/Git/MCP/AI、壳层主题密度、25 工具真实闭环与 desktopTest 638 项及 DIFF-065–471 文档/证据一并纳入仓库,便于持续对齐验收;产品窗 IME/冲突与三平台发行仍待验。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-17 06:51:45 +08:00

20 lines
938 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# DIFF-200:随手记文档库树选中与状态栏路径
## 背景
Electron `QuickNoteTool.selectNode`:单击目录会先静默保存脏笔记,再清空 `note/content` 并设置 `selectedPath`;单击文件则打开笔记。状态栏展示 `note?.relativePath ?? selectedPath`。
Compose 此前树选中仅跟 `currentFile`,点目录只折叠不更新选中/清空编辑区。
## 行为
- `QuickNoteSession.vaultSelectedPath` 写入快照。
- `VaultTreeList` 使用 `onSelect`、树行脏标记(`activeFilePath`/`activeFileDirty`)。
- 选中目录:必要时 `saveCurrent(showToast=false)`,清空 `currentFile` 与编辑器;选中文件仍走 `openFile`。
- 状态栏路径:`currentFile` 优先,否则 `vaultSelectedPath`。
## 验证
- `./gradlew :composeApp:desktopTest --offline`(含 `QuickNoteSessionSnapshotTest`)
- 对照 `next/src/features/quickNote/QuickNoteTool.tsx` `selectNode` 与状态栏