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 天內回覆