-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
--print-long-lines is documented but not implemented #189
Comments
I too would like to be able to either filter out really long lines or to have that be the default and to be able to include them again. |
One way to get around this is something like |
One reason why this behavior would be useful is that often, one is using the silver searcher to look through a project that contains minified js alongside readable code. The user would prefer to omit the terminal-filling block of unreadable js from the results so they can focus on the readable code alongside it. |
I've submitted #707 to fix this. |
Would it be possible to specify how many characters before and after the match? This is ideal for, as mentioned above, prose text. Otherwise, one gets huge chunks of results which makes it troublesome to read. Thanks! |
I believe that
--print-long-lines
is not actually implemented, despite being documented inag --help
andman ag
. There's a TODO comment in options.h indicating that it's not implemented. Should either implement or undocument.I'd find it useful (was getting annoying hits from minified js files that lack the .min.js extension).
The text was updated successfully, but these errors were encountered: