Skip to content

Output format with parseable match indices? #244

@birkenfeld

Description

@birkenfeld

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(),

Metadata

Metadata

Assignees

Labels

enhancementAn enhancement to the functionality of the software.libripgrepAn issue related to modularizing ripgrep into libraries.questionAn issue that is lacking clarity on one or more points.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions