Skip to content

Please allow setting color for matching line #3024

Open
@depesz

Description

@depesz

First of all - thank you for amazing tool. It's beyond great.

Describe your feature request

Sometimes I'm searching for short/small matches, and need to see context. While the match can be highlighted, it's not always obvious where it is.

For example, using gnu grep, I did set:

export GREP_COLORS="sl=48;5;240:mt=38;5;226;48;5;124"

and this lets me see matches like this:

Image

As far as I understand rg --help - I can't have this configured like this in ripgrep.

I think it would be worthy addition.

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