Files
MooTool/next-compose/docs/diff/255-vault-tree-scroll-selection-into-view.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

850 B
Raw Permalink Blame History

DIFF-255:Vault 树选中滚入视口

对照 Electron

JsonVaultPanel / QuickNoteTool 在 selectedPath 或树节点变化后调用 scrollSelectedIntoView(scrollIntoView({ block: 'nearest' })),保证新建/选中深层文件时行仍可见。

行为

  • VaultTreeList 对当前 selectedPath 行挂 BringIntoViewRequester,在选中路径、条目集合或展开状态变化后 bringIntoView()。
  • 与已有 vaultTreeScrollOffset 会话态互补:用户手动滚动仍写回 offset;程序性选中会滚到最近可见区。
  • jsonEditorAutoFocusEnabled / quickNoteEditorAutoFocusEnabled 在 vaultContextMenuPath 非空时不抢焦点(避免窗口激活关闭右键菜单)。

验证

  • JsonEditorFocusPolicyTest、QuickNoteEditorFocusPolicyTest
  • ./gradlew :composeApp:desktopTest --offline