Search files when nothing matches mention ignoring case run
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 90/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- go
调研方向
从 internal/tools/search.go 入手,追踪 search_files 如何处理区分大小写且没有匹配项的搜索,然后阅读 internal/tools/search_test.go 中相关的测试。补充不区分大小写的匹配以及两种情况下都没有匹配项的测试;当提示包含正确的数量、精确匹配仍保持当前响应,并且 make check 通过时,工作即告完成。
由索引模型根据 Issue 内容生成。
描述
What
search_files is case-sensitive unless the model passes ignore_case as true. If the search finds nothing we want to automatically run it case insensitive and if targets are found recommend to the model to re run it to see them.
Where
internal/tools/search.gointernal/tools/search_test.go
Fix
when a case-sensitive search finds nothing, run it again ignoring case. If that finds matches, reply with a hint plus the count, for example:
no matches for "shipping". 4 matches ignoring case; call search_files again with ignore_case true to see them.
Don't return the case-insensitive matches themselves. The reply should stay short, and the model should choose to ask for them.
Done when
- No exact matches but some case-insensitive ones gives the hint, with the right count.
- No matches either way gives today's reply, unchanged.
- An exact match behaves exactly as today.
- Tests are added in
internal/tools/search_test.go. make checkpasses.
- 主要语言
- Go
- 星标
- 1
- 派生
- 2
- 平均合并
- 12 小时 55 分钟
- 30 天内合并 PR
- 18
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Edwin-metcalf/MetCode 的其他 Issue
-
good first issue tools
难度 2/5 1-3 小时 新手友好度 88/100
Edwin-metcalf/MetCode#75 ·
维护者通常 1 天内回复
-
bench good first issue
难度 2/5 1-3 小时 新手友好度 85/100
Edwin-metcalf/MetCode#74 ·
维护者通常 1 天内回复
-
bench good first issue
难度 2/5 1-3 小时 新手友好度 86/100
Edwin-metcalf/MetCode#73 ·
维护者通常 1 天内回复
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 85/100
Edwin-metcalf/MetCode#67 ·
维护者通常 1 天内回复
-
documentation good first issue
难度 1/5 1-3 小时 新手友好度 88/100
Edwin-metcalf/MetCode#58 ·
维护者通常 1 天内回复
查看 Edwin-metcalf/MetCode 的全部 Issue
相似的 Issue
-
-diff's removed-name budget ignores the names the -ptr pass tested可能已有人在做 @nova-loop 今天认领。 未关闭area: cli bug good first issue severity: low
难度 2/5 1-3 小时 新手友好度 84/100
TMHSDigital/subenum#495 ·
维护者通常 1 天内回复
-
bug effort:s impact:med raised-by:worker risk:low to:worker
难度 2/5 1-3 小时 新手友好度 78/100
medici-finance/assay#8120 · 1 条评论 ·
维护者通常 1 天内回复
-
factory:subtask
难度 1/5 1 小时以内 新手友好度 72/100
维护者通常 1 天内回复
-
reportedBy/community
难度 2/5 1-3 小时 新手友好度 78/100
openchoreo/openchoreo#5751 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
agent-substrate/substrate#4308 ·
维护者通常 2 天内回复