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

Feature request: structured output for tooling #848

Closed
powercode opened this issue Mar 8, 2018 · 1 comment
Closed

Feature request: structured output for tooling #848

powercode opened this issue Mar 8, 2018 · 1 comment
Labels
duplicate An issue that is duplicative of another.

Comments

@powercode
Copy link

What version of ripgrep are you using?

ripgrep 0.8.1 (rev c8e9f25b85)
-SIMD -AVX

What operating system are you using ripgrep on?

Microsoft Windows 10.0.16299

Describe your question, feature request, or bug.

It would be great if there was an option to get ripgrep to produce output similar to protobuf,
that tools could use to write highly efficient and accurate parsing out the output.

So that the output would be something like

# fieldI1 = path
# field 2 = linenumber
# field 3 = line
#field 4  = matchOffsetPair
# field 5 = contextline (integer index and variable path)

<sizeofrecord>
1 # next is path
<sizeOfField> # if type is variable length
"some path"
2
93(4 bytes of data)  # or a compressed integer
3
"Some matching line of lines"
4 # first match
14-4 (8 bytes of data), or two compressed integers
4 # second match
22-4 
@BurntSushi BurntSushi added the duplicate An issue that is duplicative of another. label Mar 9, 2018
@BurntSushi
Copy link
Owner

Duplicate of #244.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate An issue that is duplicative of another.
Projects
None yet
Development

No branches or pull requests

2 participants