Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ag not printing empty files with -l #1497

Open
otto-dev opened this issue Jul 19, 2022 · 1 comment · May be fixed by #1498
Open

ag not printing empty files with -l #1497

otto-dev opened this issue Jul 19, 2022 · 1 comment · May be fixed by #1498

Comments

@otto-dev
Copy link

otto-dev commented Jul 19, 2022

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 otto-dev linked a pull request Jul 19, 2022 that will close this issue
@otto-dev
Copy link
Author

@ggreer I opened a simple PR for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant