the_silver_searcher
the_silver_searcher copied to clipboard
--vimgrep inconsistent. How to return 1 match per line?
How to make --vimgrep
return same results as --novimgrep
does, but keep the vim format
I just discovered that this is possible by using --no-heading
in place of --vimgrep
This will output a "close enough" format.
--no-heading
causes the filename prefix on each line of output, that's important.
but it will not print the "column" number in each match, since it is one per line.
I did not find this anywhere inag
docs. I just decided to try it after I found something about it mentioned in the ripgrep
repo.