Closed lougreenwood closed 1 year ago
Actually, taking a closer look at Telescope find files, it seems it also isn't behaving as consistently as I first thought... 🤔
But searching with spaces will give more expected highlighting (but also some weird stuff too if a very long string contains any keyword in sequence.
So maybe if https://github.com/danielfalk/smart-open.nvim/issues/15 were addressed, then the space separated search might at least behave correctly...?
I found something similar when using fzf algorithm, if I add a space the highlighting totally disappears, nothing is highlighted.
This is fixed on the 0.2.x
branch, which is pushed and available, but still needs user feedback before I'd consider it "released".
Anyway, it now highlights differently depending on whether you use fzy or fzf so that it matches what the algorithm is doing.
Telescope built in find files will highlight all partial matches in the file name, for example if I search
person item
then the search result will have the following highlights (bold used to indicate highlight):timeline-**item**-**person**
.However,
smart open
highlight behaves much more erratically, for example, see this screenshot, I see some fragments of the search term highlighted, but not others.