fix(tool/grep): always show file names with rg (#271)
This commit is contained in:
parent
1f6eef460e
commit
f0571f5f5a
1 changed files with 1 additions and 1 deletions
|
|
@ -211,7 +211,7 @@ func searchWithRipgrep(pattern, path, include string) ([]grepMatch, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Use -n to show line numbers and include the matched line
|
// Use -n to show line numbers and include the matched line
|
||||||
args := []string{"-n", pattern}
|
args := []string{"-H", "-n", pattern}
|
||||||
if include != "" {
|
if include != "" {
|
||||||
args = append(args, "--glob", include)
|
args = append(args, "--glob", include)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue