vimium icon indicating copy to clipboard operation
vimium copied to clipboard

Incremental search and highlights

Open Vozf opened this issue 5 years ago • 6 comments

Are there any plans to adopt commands for incremental search and highlighting such as

set incsearch
set hlsearch

?

Vozf avatar Jan 14 '20 20:01 Vozf

Browsers don't allow extensions to call their inner functionality of highlighting all matched text, while it's too complex and difficult to simulate such a highlighting style by Vimium itself.

gdh1995 avatar Jan 23 '20 00:01 gdh1995

There is an extension which works in a similar way. If it helps - https://chrome.google.com/webstore/detail/selection-highlighter/nepmkgohgoagfgcoegjaggacodcpdibj

Vozf avatar Jan 23 '20 11:01 Vozf

The extension is hosted on https://github.com/neaumusic/selection-highlighter, and it creates new DOM elements to add styles to matched text. This behavior may break some pages - this may be why it has a blacklistedHosts.

Well, this issue is somehow a duplicate of #591, and there seems no perfect API to do so.

gdh1995 avatar Jan 24 '20 02:01 gdh1995

Can it be done as an optional feature with the same blacklist as vimium already has?

Vozf avatar Jan 24 '20 08:01 Vozf

Add usecase why this is helpful: I need to view log file from logging apps, the log is usually large. Chrome default search can highlight all search appearances, and also has outline in the right scroll bar, it makes is easy to navigate the log. I don't quite use vimium search function because of lacking this feature.

Xiao6 avatar Apr 13 '20 05:04 Xiao6

I absolutely love this extension. I think it'd be helpful if the other matched searched results were kept highlighted even when they're not the activated matched result. I hope this finds its way into a future update.

sepsol avatar May 21 '25 17:05 sepsol