Vimium: J and K for tab shifting stops working if a pdf is opened in some tab..

Created on 18 Apr 2017  ·  10Comments  ·  Source: philc/vimium

Most helpful comment

I'm a longtime user of Vimium, and this bug is still annoying for me. I know that I can't use Vimium's scrolling keys to navigate PDFs because PDFs can't be scrolled with JavaScript, but I would at least like to be able to navigate away from a PDF tab using Vimium's J and K keys. I hate how when I'm switching through tabs with J and K, I get "stuck" as soon as I land on a PDF tab and have to reach back for the mouse in order to escape from it. Shouldn't Vimium's tab navigation continue to work even if the contents of the tab itself can't be controlled by Vimium?

All 10 comments

It should work in the most-recent Chrome Store version. Make sure that you aren't in insert mode (i.e., hit Escape).

I just realised that normal navigation "hjkl" isn't working in pdf opened in chrome either... any help will be appreciated :) and I'm not in insert mode

PDFs are shown using a plug-in, which can't (AFAICT) be controlled using JavaScript, nor any extension APIs. For the time being, we have no way of scrolling, clicking links in PDFs, etc. Sorry.

is it possible that some 3rd party pdf plugin would have support for vimium?

I believe pdf.js is your best bet. This comment may be useful.

I'll also note that Vimium (current master branch) works as expected with PDFs on Firefox, since they use pdf.js out-of-the-box.

thanks for that man. But after installing pdf.js extension, I found out that it does support navigation, but the navigation isn't continuous scroll like down arrow key. it is using one page per "j/k" keystroke.

For tab shifting just use Shift-t to go directly to the desired tab, or use the chrome shortcuts Ctrl-Tab and Ctrl-Shift-Tab. This is what I do to avoid getting hung up on inputs or certain google pages which do not allow vimium.

I'm a longtime user of Vimium, and this bug is still annoying for me. I know that I can't use Vimium's scrolling keys to navigate PDFs because PDFs can't be scrolled with JavaScript, but I would at least like to be able to navigate away from a PDF tab using Vimium's J and K keys. I hate how when I'm switching through tabs with J and K, I get "stuck" as soon as I land on a PDF tab and have to reach back for the mouse in order to escape from it. Shouldn't Vimium's tab navigation continue to work even if the contents of the tab itself can't be controlled by Vimium?

Any updates on this issue?

PDF plugin is still rejecting all extensions on Chrome/Firefox. So a user may have to use a 3rd-party PDF extension to hook all .pdf pages.

Here's an example: use my customized version of Vimium - Vimium C (Git repo: https://github.com/gdh1995/vimium-c) - and my customized version of PDF Viewer (built from PDF.js)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

umutyazgan picture umutyazgan  ·  4Comments

benwoodward picture benwoodward  ·  3Comments

Semro picture Semro  ·  3Comments

kaldown picture kaldown  ·  3Comments

peter099 picture peter099  ·  3Comments