Skip to content

Commit 1b86dc8

Browse files
committed
feat(ripgrep): enhance search instructions with regex examples and usage tips #413
1 parent 37235ae commit 1b86dc8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1-
支持 Regex 的全局搜索
1+
使用 ripgrep 在文件或目录中查找精确的模式匹配。支持正则表达式的全局搜索,如
22
/ripgrepSearch:.*AutoDev.*
3-
优化使用 Regex 方式,诸如使用 /s 替换空格
3+
4+
示例:
5+
- 搜索特定函数:`/ripgrepSearch:function\s+processData`
6+
- 搜索带命名空间的类:`/ripgrepSearch:cc\.unitmesh\..*Service`
7+
- 在特定文件类型中搜索:`/ripgrepSearch:import.*kotlin --include="*.kt"`
8+
9+
当你搜索业务领域名词出错时,可以尝试是否存在 prompts/domain.csv 来帮助你找到正确的领域名词

0 commit comments

Comments
 (0)