hlissner / evil-snipe

2-char searching ala vim-sneak & vim-seek, for evil-mode
MIT License
341 stars 25 forks source link

Possibility to restrict highlights to first 2 or last 2 characters in word #97

Open userrand opened 6 months ago

userrand commented 6 months ago

Describe your request

Restricting highlights to only match begining and end of a word

Briefly explain its use-case

Specifying that highlights only match the begining or end of a word might increase the probability that the first match is the one where the user wants to go as it diminishes the number of possibilities.

This might be possible by extending the search to 3 character search and using a space character at the end or beginning.