on main help sign in
fix(tool/grep): always show file names with rg (#271)
f0571f5Aldehir Rojas
internal/llm/tools/grep.go+1−1
@@ -211,7 +211,7 @@ func searchWithRipgrep(pattern, path, include string) ([]grepMatch, error) {
211 }
211 }
212
212
213 // Use -n to show line numbers and include the matched line
213 // Use -n to show line numbers and include the matched line
214− args := []string{"-n", pattern}
214+ args := []string{"-H", "-n", pattern}
215 if include != "" {
215 if include != "" {
216 args = append(args, "--glob", include)
216 args = append(args, "--glob", include)
217 }
217 }