dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

Show number of search results above/below current viewport (visible lines)

Open bew opened this issue 5 years ago • 3 comments

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 ?)

bew avatar May 12 '20 11:05 bew

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)

bew avatar Nov 16 '21 12:11 bew

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.

bew avatar Jan 10 '22 16:01 bew

If not the number, at least show there are 1+ results above/below

bew avatar Sep 27 '24 21:09 bew