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.
counsel-git-greplists matching lines prefixed with the filename and line number (as it should). It also highlights the matching strings in the lines shown (I believe viaivy--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-agandcounsel-pthave the same problem.This came from my work in #395 but I never came up with a good solution.