the_silver_searcher icon indicating copy to clipboard operation
the_silver_searcher copied to clipboard

ag not printing empty files with -l

Open otto-dev opened this issue 2 years ago • 1 comments

Empty files that are part of the searchable subset of files should still be listed.

ag can deduct that no query will match an empty file, without opening the file, but the file should still be listed as "searchable".

Would be great if it was possible to list empty files. There was #956 but this forces one to use -u, which in my case results in a ton of garbage files in the output (which is not what I want).

otto-dev avatar Jul 19 '22 20:07 otto-dev

@ggreer I opened a simple PR for this

otto-dev avatar Jul 19 '22 21:07 otto-dev