Open andrewthad opened 9 years ago
Duplicate of #189, I think.
It appears so. I guess since that issue has been open two years and seems unlikely to get fixed, maybe my request could instead be to remove --print-long-lines
from the documentation, since it only confuses people who expect it to work.
@andrewthad I agree. I've submitted https://github.com/ggreer/the_silver_searcher/pull/706 to do that. I've also submitted https://github.com/ggreer/the_silver_searcher/pull/707 to fix the underlying issue.
One thing that often gets in my way when I'm searching for things is that I'll get matches for random json and xml files that are rendered as one line. I never want to see these, so I looked through the man page and found an interesting flag:
Cool. But there are two problems. The first one is a functional issue (or maybe just my ignorance) and the second is a feature request.
ag
on my computer, it prints a match on a line with 1368810 characters. And I don't see a way to turn this flag off either. There isn't a--noprint-long-lines
flag mentioned in the man page. So basically, I don't see how to actually get the actually get the line-filtering behavior that the man page indicates is possible.Regardless, thanks for all the hard work on this awesome tool. It is enormously helpful in my workflow, and I hope that it can become even more so.