Sublime Forum

Persistent highlight matches after Find panel closes


Currently the style of highlighted find / incremental_find matches disappears after the Find panel is hidden. It’d be great to have an option to leave the highlight style enabled until a new search is done. In effect this replicates the highlight search in vim (set hlsearch), which is useful for keeping an eye on what’s in the search register regardless of where the cursor is, allowing you to easily see where the cursor will go after pressing n.

I’ve been looking into accomplishing this with a plugin using the add_regions but I can’t seem to find a way of retrieving the string of the last search command.