Skip to content

counsel-git-grep highlights matches in filenames #483

@hmelman

Description

@hmelman

counsel-git-grep lists matching lines prefixed with the filename and line number (as it should). It also highlights the matching strings in the lines shown (I believe via ivy--format-minibuffer-line). However it might also highlight part of the filename if it matches the regexp. I don't think it should highlight the filename (or line number) part of the line because that wasn't why the line is considered to match the regexp.

I assume similar functions such as counsel-ag and counsel-pt have the same problem.

This came from my work in #395 but I never came up with a good solution.

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