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

add option for structured output #32

Closed
lzybkr opened this issue Sep 23, 2016 · 3 comments
Closed

add option for structured output #32

lzybkr opened this issue Sep 23, 2016 · 3 comments
Labels
question An issue that is lacking clarity on one or more points.

Comments

@lzybkr
Copy link
Contributor

lzybkr commented Sep 23, 2016

Consider adding a flag to output structured data such as json or csv for use by other tools.

rg --color None --no-heading is nearly good enough, but the extent of the match is missing.

@BurntSushi
Copy link
Owner

Can you use the --vimgrep flag for this?

It feels a little off to support CSV or JSON in a tool like this to be honest, but I'm not strongly opposed.

@lzybkr
Copy link
Contributor Author

lzybkr commented Sep 23, 2016

--vimgrep is roughly CSV but with :, so that works. It's missing the length though.

@BurntSushi BurntSushi added the question An issue that is lacking clarity on one or more points. label Sep 24, 2016
@BurntSushi
Copy link
Owner

I'm going to close this in favor of #162. I feel like supporting this would add significant complexity, because every single flag that controls output needs to be re-interpreted based on the output format.

Once #162 is done and there exists a straight-forward path to support this, then I'd be happy to maintain a well tested implementation in ripgrep proper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question An issue that is lacking clarity on one or more points.
Projects
None yet
Development

No branches or pull requests

2 participants