Skip to content
This repository was archived by the owner on Sep 18, 2025. It is now read-only.

Commit f0571f5

Browse files
authored
fix(tool/grep): always show file names with rg (#271)
1 parent 1f6eef4 commit f0571f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/llm/tools/grep.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ func searchWithRipgrep(pattern, path, include string) ([]grepMatch, error) {
211211
}
212212

213213
// Use -n to show line numbers and include the matched line
214-
args := []string{"-n", pattern}
214+
args := []string{"-H", "-n", pattern}
215215
if include != "" {
216216
args = append(args, "--glob", include)
217217
}

0 commit comments

Comments
 (0)