on main help sign in
fix(tool/grep): always show file names with rg (#271)
commitf0571f5f5adef12eba9ddf6d07223a043d63dca8 authorAldehir Rojas <hello@alde.dev> dateTue 1 Jul 2025, 04:52 (1 year ago) parent1f6eef4
1 file changed+1−1
internal/llm/tools/grep.go+1−1
internal/llm/tools/grep.go+1−1
@@ -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 }