philc / vimium

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

Literally type/escape character #3439

Open dylan-chong opened 4 years ago

dylan-chong commented 4 years ago

I would like to press t on github to search the files without it opening a new tab, and without disabling vimium. Is there a way to have a prefix key so i can send the keystroke to the page not vimum. Eg so i can do \t to search the files

gdh1995 commented 4 years ago

There's a command of "passNextKey", and you may map a key to it.

itajsh commented 4 years ago

When I want to have several keystrokes I use enterInsertMode. And I quit it by clicking Esc.

Is it possible to map a different key to quit insert mode apart from Esc or instead of Esc?

gdh1995 commented 4 years ago

There's a usage like map <f2> passNextKey count=10, and then a next 10 keys will be passed.

The below is an AD: my customized version of Vimium - Vimium C - supports map <a-/> enterInsertMode stat=8 code=27 to only allow <Shift+Esc> to exit the insert mode. The stat means status of keyboard (alt=1, ctrl=2, meta=4, shift=8, and then Alt+Shift is 9), and code means keyCode of a key event.