You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-l --files-with-matches
Only print the names of files containing matches, not the matching lines. An empty query will print all files that would be searched.
-u --unrestricted
Search all files. This ignores .agignore, .gitignore, etc. It searches binary and hidden files as well.
So I'd expect ag -lu to list all files.
However:
+ravi@boxy:~$ mkdir new && cd new
+ravi@boxy:~/new$ echo stuff > non-empty && touch empty
+ravi@boxy:~/new$ ag -ul
non-empty
+ravi@boxy:~/new$
The text was updated successfully, but these errors were encountered:
Fix issue ggreer#956:
`ag -ul` with an empty query should list all filenames, as the manual
says:
-u --unrestricted
Search *all* files. ...
-l --files-with-matches
...An empty query will print all files that would be searched.
From the man page: (
ag version 0.28.0
)So I'd expect
ag -lu
to list all files.However:
The text was updated successfully, but these errors were encountered: