Ability to disable vimium except for navigating through the tab
If a website has decent keyboard shortcut support I'd like to mostly disable vimium in order to use the native key bindings.
But at the very least I'd still like to retain j/k bindings for moving through tabs. I imagine it would be useful to whitelist a few other bindings as well (f may be useful enough to warrant white-listing).
This confuses the UX, but how about a way of inverting the "exclude keys" for certain sites so we could explicitly list the keys we want to keep enabled (and disable the rest)?
Note that this is sort of possible already by individually disabling keys that the site listens to natively. And also a lot of sites also want to use j and k for the same reason vimium wants them. So even disabling everything except j/k might not work great.
Alternatively, maybe after a tab has been switched, vimium could temporarily (for 1s or so?) steal tab switching keys and react to them despite vimium officially being disabled?
This would be a nice addition. It's frustrating when I'm shuffling through tabs with J and K and I stumble on a tab where Vimium is disabled. I have to use my mouse (or use my browser's shortcuts) to get out of that key trap.
This was a suggested as an addition six years ago! I am quite surprised it hasn't been dealt with yet.
https://github.com/philc/vimium/issues/491
I think perhaps a more useful generalization would be to add domain-specific key whitelisting, similar to the blacklisting already implemented ("Exclude keys").
It certainly would be possible (and not that hard) to add this feature.
However, it's not obvious that the benefit outweighs the additional complexity to the user interface. See the design goals.
My personal motivation is benefiting from tab-switching workflow in Vimium-disabled sites. I visit multiple sites on a daily basis that have their own internal navigation through keyboard shortcuts - Jupyter notebooks, Quip, Slack, Google Drive/Mail/Calendar - which would benefit from this feature.
I get the conflict with the design goals, though.
wasn't this done in https://github.com/philc/vimium/pull/1143 ?
wasn't this done in #1143 ?
in theory something with passKey should be able to enable this, but in practice, I haven't been able to get this to work. @mmikeww could you lay out the steps for accomplishing this?
some other related issues:
- #3190
- #3697 and related docs:
- Using the escape key in inputs
- Disabling pass keys