-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Output format with parseable match indices? #244
Copy link
Copy link
Closed
Labels
enhancementAn enhancement to the functionality of the software.An enhancement to the functionality of the software.libripgrepAn issue related to modularizing ripgrep into libraries.An issue related to modularizing ripgrep into libraries.questionAn issue that is lacking clarity on one or more points.An issue that is lacking clarity on one or more points.
Milestone
Description
For integration in other tools (editors...) it would be great to have a parseable output format that includes the start and end index for each match in a line. You can do it with colors (but see #242) but it's not really what colors are meant for.
ag has --ackmate, which outputs something like this:
$ ag --ackmate host
:src/util.rs
85;43 4,55 4: ext_host: "localhost".into(),
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementAn enhancement to the functionality of the software.An enhancement to the functionality of the software.libripgrepAn issue related to modularizing ripgrep into libraries.An issue related to modularizing ripgrep into libraries.questionAn issue that is lacking clarity on one or more points.An issue that is lacking clarity on one or more points.