Files
MooTool/next-compose/docs/diff/301-host-quicknote-replace-all-notice.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

840 B
Raw Permalink Blame History

DIFF-301:Host/随手记「全部替换」成功不写 matches 状态栏

背景

Electron HostTool.replaceCurrent(true) / QuickNoteTool.replaceCurrent(true) 成功时仅更新正文与 replacedCount,无状态栏 notice(无匹配时仍 toast.info(findReplace.noMatches))。Compose Host/随手记此前写入 json.find.matches;JSON 工具已在 DIFF-283 等与 Electron 一致写空 notice。

行为

  • F01 / F10:查找条「全部替换」成功:findReplacedCount = count,session.notice = ""(不写 matches 文案)。
  • 无匹配仍用 json.notice.noMatches;已替换计数仍由 find.replacedPrefix 展示。

验证

  • 对照 next/src/features/host/HostTool.tsx、next/src/features/quickNote/QuickNoteTool.tsx replaceCurrent
  • ./gradlew :composeApp:desktopTest --offline