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

--print-long-lines is documented but not implemented #189

Open
dandavison opened this issue Apr 21, 2013 · 5 comments
Open

--print-long-lines is documented but not implemented #189

dandavison opened this issue Apr 21, 2013 · 5 comments

Comments

@dandavison
Copy link

I believe that --print-long-lines is not actually implemented, despite being documented in ag --help and man 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).

novalis added a commit to novalis/the_silver_searcher that referenced this issue Jun 12, 2013
novalis added a commit to novalis/the_silver_searcher that referenced this issue Jun 12, 2013
thomasf pushed a commit to thomasf/the_silver_searcher that referenced this issue Jul 23, 2013
thomasf pushed a commit to thomasf/the_silver_searcher that referenced this issue Aug 7, 2013
thomasf pushed a commit to thomasf/the_silver_searcher that referenced this issue Aug 13, 2013
thomasf pushed a commit to thomasf/the_silver_searcher that referenced this issue Aug 26, 2013
thomasf pushed a commit to thomasf/the_silver_searcher that referenced this issue Sep 3, 2013
@amfarrell
Copy link

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.

@amfarrell
Copy link

One way to get around this is something like ag '.csv' | awk '{ if (length($0) < 2028) print }', but it removes ag's nice formatting.

@amfarrell
Copy link

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.

amfarrell pushed a commit to amfarrell/the_silver_searcher that referenced this issue Jun 30, 2015
@amfarrell
Copy link

I've submitted #707 to fix this.

@AtomicNess123
Copy link

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!

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

No branches or pull requests

3 participants