Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
abe312 opened this issue Apr 18, 2017 · 11 comments
Open

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

abe312 opened this issue Apr 18, 2017 · 11 comments

Comments

@abe312
Copy link

abe312 commented Apr 18, 2017

No description provided.

@smblott-github
Copy link
Collaborator

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

@abe312
Copy link
Author

abe312 commented Apr 18, 2017

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

@mrmr1993
Copy link
Contributor

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.

@abe312
Copy link
Author

abe312 commented Apr 18, 2017

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

@mrmr1993
Copy link
Contributor

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.

@abe312
Copy link
Author

abe312 commented Apr 19, 2017

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.

@rjb25
Copy link

rjb25 commented May 13, 2017

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.

@etremel
Copy link

etremel commented Jan 16, 2019

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?

@nijynot
Copy link

nijynot commented Feb 26, 2020

Any updates on this issue?

@gdh1995
Copy link
Contributor

gdh1995 commented Feb 26, 2020

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)

@jjc224
Copy link

jjc224 commented Mar 22, 2022

Experiencing this issue in 2022. Quite annoying not being able to navigate within or away from PDFs. I understand that interaction with the PDF via a plugin is not feasible; however, it's pretty clear this is a hindrance to many users (including myself), and it would be great if it was addressed. As @etremel said, a single PDF tab will break tab switching such that you have to use the mouse to resolve it (e.g., by clicking another tab). I encounter this issue a lot during general browsing. This interrupts a typical Vimium workflow and goes against Vim(ium) philosophy imo.

This has been known/discussed since 2014 (issue). Any updates on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants