hlissner / evil-snipe

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

evil-snipe-scope 'visible matches in non-visible parts #51

Closed rcj closed 7 years ago

rcj commented 7 years ago

When setting evil-snipe-scope to 'visible it will also match folded/invisible parts as long as they are part of the "visible" buffer. E.g. in org mode it will match in hidden sub-trees as long as the folded headline is in the visible part of the buffer. Is this intended?

hlissner commented 7 years ago

This is certainly unintended. Evil-snipe does no checks to see if a match is invisible/folded. The 'visible scope just means it won't match beyond the bottom/top edges of the window.

I'll have a look at it over the weekend.

hlissner commented 7 years ago

Just pushed a fix addressing this. Please update and let me know if it resolves your problem.

rcj commented 7 years ago

Sorry for the late reply. Yes, it is now working as expected, thanks!