philc / vimium

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

Way to enable only few global keybindings? #3858

Open chhajedji opened 3 years ago

chhajedji commented 3 years ago

Is there any way I can disable all but few global keybindings? For my usage, I only need j, k, G, gg and /. I want to disable all others as sometimes when I assume cursor is no dialogue box but actually it's not, and when I start typing all the random unexpected things start to happen.

I am using Chrome extension. Thanks for help in advance.

gdh1995 commented 3 years ago

Um, Vimium's exclusions rules don't support such a usage.

Copied from https://github.com/philc/vimium/issues/3272#issuecomment-475296695 : I have a customized version of Vimium, named Vimium C, and its exclusion rules support allowlists of keys, if only a pass keys field starts with ^ and a space character (U+0020). It can also switch among different "pass keys" by commands: https://github.com/gdh1995/vimium-c/wiki/Enable-or-Disable-all-frames-by-a-shortcut .