Repository navigation
feat(search): 支持分页分组、未保存内容和搜索大小设置 - #2213
Merged
Merged
Conversation
xiaoyumuxi
marked this pull request as ready for review
November 19, 2026 14:55
21 of 22 tasks
16 of 19 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联 Issue / Linked issue
6a2c0826b54eec385880f64da4a5e6b613d00dbe,同时包含构建选项更新至 Core ci: publish a rolling Windows preview installer #124。PR 类型 / Type
改动说明 / What changes
背景 / Why
Find in Files 的200条总上限会隐藏后续命中,未保存内容没有进入搜索,非UTF-8文件无法替换。本PR提交 #2199 已实现的部分,并提供真实可编辑的搜索大小设置。
改动 / Changes
:行号。通用rankNames保持旧规则,防止插件市场出现额外结果。search.json,打开只读;Apply/恢复默认才条件写回并回读,保留无关字段,外部冲突保留草稿并要求刷新。应用后刷新当前搜索。不在本 PR 范围内 / Out of scope
#2199 保持打开:完整匹配总数、完整MinusculeMatcher排序/通配语义、无需先打开文件的全工作区类/符号、外部库、符号链接跟随(循环/外部目标/监听)、全部生成目录的临时覆盖及两端原生与真实大项目验收。分组计数是已加载匹配行数,不是完整出现次数。64 MiB仍为当前解码/原生I/O安全边界,未支持无限文件。
类型专属:feat
多平台对齐
范围检查 / Scope checks
功能矩阵 / Feature matrix
search-project、search-global、search-replace并新增search-settings,如实保留partial/pending。origin/main HEAD变更门禁通过。插件归属 / Plugin ownership
UI 验证 / UI evidence
TestVisualSearchResults、TestVisualSearchPreferences:macOS arm64无头截图12张,检查项目分组、All正文和设置页,中英文×明暗;工作台1440×900、设置1120×820。search-visual-Linux-*artifact链接在运行结束后补到此处。截图由本PR测试从真实临时文件生成。统一日志系统 / Structured logging
界面文案 / i18n
shared/i18n/features/search.json,生成结果随PR提交;无具体插件词条。逻辑归属 / Logic placement
性能与内存 / Performance and memory
小样本慢约1–6%,没有据此声称性能提升;未测真实大工作区端到端延迟和峰值RSS。新增All正文和更大的预算会增加实际查询工作量。没有新依赖/运行时;分组再传轻量路径,不重复正文。已加载页仍随用户继续滚动增长,不能把虚拟列表当作恒定内存。
设置 / Settings
插件契约 / Plugin contract
N/A:不修改插件契约、SDK或插件宿主方法;修改的是应用Core接口,已更新Core正式契约和fixture,并固定对应commit。
发行包与资源 / Bundle and resources
docs/ci-builds.md记录偏好、内存索引和截图归属/生命周期及不可跨树复制。无用代码与重构 / Dead code and refactoring
验证 / Verification
cargo test -p lithe-projecttest -racetest ./internal/core ./internal/settingswindow ./internal/searchprefs ./internal/documentio -count=1test ./...合并最新 main 后已解决 Core 固定版本冲突;使用上面的正式固定版本重跑搜索/替换/设置、插件市场和构建选项/命令相关测试,四个有匹配测试的包全部通过;i18n、功能矩阵、Notes、bundle只读和actionlint通过。
未能执行的检查和原因:
TestProviderDiscoveryUsesRealCoreParser断言无Claude提供者,实际返回一个;在改动前固定Core98e6940上单独重跑同样失败。AI文件无改动,未在本PR修改该既有测试。提交前确认 / Final checks