-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
--replace should work on every line of output #158
Comments
I think I almost got what I was looking for with the
@BurntSushi It would be nice if we have a
Thanks! |
@AshwinJay I had a hard time following what exactly you want here. I'm glad to see
... ah, I see, this does not work because it only shows the replacement for the first match in each line. I think that's a bug. I'd expect |
Note that #34 requests an There is also #125 that adds an |
@BurntSushi I think #34 is exactly what I'm looking for. When that gets implemented, there will be no need to use With the combination of
Then stream the output to a program, perhaps a UI. If the user wants to dig into any specific output line, then I'd use the "line:column" combination to dive into the specific area of the text file and then read the entire text. Hope that makes it clear. Thanks! |
Right, I understand, but I still consider the behavior between |
I realized only now that Thanks. |
Outstanding performance compared to
If you implement #34 along with |
To be fair, if you are on a mac, then grep is probably bsdgrep, which is On Oct 13, 2016 01:55, "Ashwin Jayaprakash" notifications@github.com
|
Ok I tried ggrep. It's pretty fast but yours is faster.
|
@AshwinJay Nice! That's a great result. If you're curious about the specific reason why Also, if you upgrade to |
I'm going to close this because I believe I was too hasty in marking this as a bug. Specifically, the regex Otherwise, I think the original use case is solved by #34 (which is still open). |
Hello, I could not find any switch to make ripgrep print all the column numbers if a pattern appears more than once on a single line. It seems to print only the first match but colors all the matches.
My other question is more of an enhancement request.
Here's what I would love to use ripgrep for:
Stream a long list of multiline strings, delimited by some special character and have ripgrep output the position of the string in the stream that contains a match(es) along with the column and length of the matching text.
Example:
Output:
Thanks.
The text was updated successfully, but these errors were encountered: