Skip to content

multi-letter key passthrough #693

Answered by gdh1995
FranklinYu asked this question in Q&A
Discussion options

You must be logged in to vote

No it's impossible, because during handling i, the first keyboard event of g has been "ended", and JS extensions like Vimium C can not re-produce such a native key event perfectly.

While you may use other tricks supported by Vimium C:

  1. you may unmap gn, unmap gi, and unmap all other g-prefixed default mappings, and then map other keys to those Vimium C commands
  2. you may map gi to dispatchEvent ...... when keeping gf default to nextFrame
    1. dispatchEvent is a command designed to "simulate" keyboard events - extensions can not produce "native events" because of browser limits
    1. then you may let Vimium C dispatch a sequence of key events, like:
map <v-de> dispatchEvent
run <v-de_g> de#k…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gdh1995
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants