When using the live_grep view and searching only the first match on each line is highlighted. This is mainly a problem when the search also matches the file name, then you can't easily see at a glance what in the file actually matches the search.
For example:
The first few lines look as expected, but when the path also matches the search the matching code is no longer highlighted. It's still usable but way harder to read.
I've tried finding a setting to control this but I've been unsuccessful, if there is one please tell me!
Description
When using the
live_grep
view and searching only the first match on each line is highlighted. This is mainly a problem when the search also matches the file name, then you can't easily see at a glance what in the file actually matches the search.For example: The first few lines look as expected, but when the path also matches the search the matching code is no longer highlighted. It's still usable but way harder to read.
I've tried finding a setting to control this but I've been unsuccessful, if there is one please tell me!
Neovim version
Operating system and version
Ubuntu 22.04
Telescope version / branch / rev
0.1.x (550055e640fd6eea88430ba5da3a3bc08679cf94)
checkhealth telescope
Steps to reproduce
Make sure you have a file tree where there are folders with name
xxxx
and within those folders there are files also containing the stringxxxx
.xxxx
Expected behavior
All instances of
xxxx
should be highlighted, both from the path and from the file contents.Actual behavior
Only the first instance of
xxxx
is highlighted, this will be from the path if it matches, otherwise from the file contents.Minimal config