Show number of search results above/below current viewport (visible lines)
bew opened this issue · comments
Benoit de Chezelles commented
So it's easy to know if all search results are currently visible, or if we're on the last ones, etc..
(is there a way to react to hlsearch activation & nohlsearch ?)
Benoit de Chezelles commented
Alternative UI, show (e.g: with virtual text) the match and its count (on current line only):
...
some text with a match
...
the current [match] § match 2 of 3
-------- ^ start of the virtual text --------
...
other match
Edit: Could use https://github.com/kevinhwang91/nvim-hlslens for this! (a customizable Lua plugin)
Benoit de Chezelles commented
https://github.com/petertriho/nvim-scrollbar now supports small indicators to show where search results are in the file.
Left gutter is for the current lines, and that extensible scrollbar is like a right gutter, about the whole file.