philc / vimium

The hacker's browser.
https://chrome.google.com/webstore/detail/vimium/dbepggeogbaibhgnhhndojpepiihcmeb
MIT License
23.58k stars 2.49k forks source link

Option for disabling wrap scanning (nowrapscan)? #3553

Open catzybluphish opened 4 years ago

catzybluphish commented 4 years ago

Is there an option for disabling wrap scanning when searching for terms? You can disable this with set nowrapscan in your vimrc. If not, I'm requesting this feature.

dumblob commented 2 years ago

I'm in need for this as well. I saw @gdh1995 probably implemented it in https://github.com/gdh1995/vimium-c/issues/13 but maybe I'm wrong.

@gdh1995 could you comment on this please?

dumblob commented 2 years ago

Just found this: https://github.com/philc/vimium/issues/3172#issuecomment-516343238 . So it seems it's more about a bug in Firefox than about Vimium :cry:.

gdh1995 commented 2 years ago

Yes Firefox doesn't support the feature of wrap finding in its JavaScript APIs. This can be simulated by a further step: move selection to head/end and search again, just like what I've added into my Vimium C (https://github.com/gdh1995/vimium-c)

gdh1995 commented 2 years ago

In my Vimium C (https://github.com/gdh1995/vimium-c), \A in Find HUD means to turn off wrapAround, and \a can re-enable it (if not in regexp mode).