Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Group captures in JSON output #542

@anka-213

Description

@anka-213

This was apparently already the case in a very early version of this program, but was lost when src/extractor.rs was pulled out to its own module.

In order to preserve the grouping, we would need to remove this flat_map and propagate the nested lists forward (similarly to the first commit linked):

.flat_map(|query_match| query_match.captures)

We would probably need to take care to not cause a regression leading to showing empty files again, since we might get lists of empty lists.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions