vimium icon indicating copy to clipboard operation
vimium copied to clipboard

How to use this plugin on Github where keyboard events are stealed.

Open eguneys opened this issue 1 year ago • 2 comments

I used to Search with / and pressing N to find the next occurence in code view of github. But now github hijacks and does all sorts of evil things to prevent me from using this Vimium features. pLease Help don't let github win.

eguneys avatar Oct 14 '23 14:10 eguneys

For github you can turn off keyboard shortcuts on https://github.com/settings/accessibility However, there are many other sites that also steal one-letter keyboard events (GMail for example) so a way to force Vimium keybindings to always take precedence would be nice.

bjourne avatar Oct 16 '23 16:10 bjourne

(note: tested only in Firefox)

The GitHub search bar doesn't work with gi and afaik there's no way to focus on it if the keyboard shortcuts are off as suggested above - so that isn't a valid option for me 😕

I'm happy enough to have vimium and github shortcuts co-existing (by adding specific key exceptions or using a passthrough key), but one bug that I found while doing so is that the ESC key doesn't work in GitHub for collapsing the search bar - forcing me to use the mouse if the search bar is focused.

Screenshot 2023-11-29 at 12 32 13 if I focus on the GitHub search bar while using Vimium, I'm forced to use the mouse to collapse the search bar

EDIT: a solution to use the keyboard to collapse the GitHub search bar is to map something to passNextKey - a bit more keystrokes but works fine (an idea I got from the discussion here)

Drowze avatar Nov 29 '23 15:11 Drowze