fix(tool/grep): always show file names with rg (#271)

This commit is contained in:
Aldehir Rojas 2025-07-01 04:52:19 -05:00 • committed by GitHub
parent 1f6eef460e
commit f0571f5f5a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -211,7 +211,7 @@ func searchWithRipgrep(pattern, path, include string) ([]grepMatch, error) {
}
// Use -n to show line numbers and include the matched line
args := []string{"-n", pattern}
args := []string{"-H", "-n", pattern}
if include != "" {
args = append(args, "--glob", include)
}