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/k keybindigs not working on PDF viewer #723

Closed
tiagoboldt opened this issue Nov 14, 2012 · 16 comments
Closed

j/k keybindigs not working on PDF viewer #723

tiagoboldt opened this issue Nov 14, 2012 · 16 comments

Comments

@tiagoboldt
Copy link

When viewing a PDF, scrolling keybindings do not work.

This has been reported once (#350) but i created this new report as the other issue was closed while the problem still persisted.

@majkinetor
Copy link

It doesn't work indeed. Some other shortcuts do work, like o, b, ? , but those that are actually crucial like j/k/l/h/, search etc do not work.

@int3
Copy link
Collaborator

int3 commented Dec 16, 2012

This is pretty much unfixable, because Javascript doesn't run in the PDF viewer. Thanks for the report though.

@int3 int3 closed this as completed Dec 16, 2012
@mijoharas
Copy link
Contributor

dammit, this is very annoying, that's the problem with closed source software (libpdf.so)

@mrmr1993
Copy link
Contributor

mrmr1993 commented Apr 2, 2014

You may be interested in Mozilla's PDF.js, specifically the Chrome (and Opera) extension. The extension renders PDFs as HTML5 and JS, which vimium can play nicely with, so you can have all the usual Vimium functionality for PDF documents too.

@mijoharas
Copy link
Contributor

@mrmr1993 does it? I tried that a little earlier, (been digging into this a bit) I couldn't get vimium's j/k keys to work or the O to open things, did I do something wrong? P.S. I tried using the linked to extension have you gotten things working in this way? P.P.S. with the extension i installed I lose the ability to swap tabs with J and K as well

@mrmr1993
Copy link
Contributor

mrmr1993 commented Apr 2, 2014

@mhauserr How strange, I thought it used to work.. The current version of PDF.js seems to be doing something funky and stopping all other extensions' content scripts from loading. I will investigate further.

@orschiro
Copy link

I ran into the same issue and gave the PDF.js extension a try. It looks promising and jk scroll works. However, only page-wise but not real scrolling entirely through a page.

Doese anyone know if this behaviour can be changed?

@mijoharas
Copy link
Contributor

I looked into this for a bit. Couldn't think of an easy way of doing this as extensions can't interact with one another on chrome. see here for details. (oh and you get the scrolling at the expense of the back/forward and left/right a tab functionality, so I switched back to chrome's inbuilt version). I think I also asked the chromium guys here in their bug tracker. doesn't look like they're going to expose any API's we can interact with or anything.

@zach-is-my-name
Copy link

@mrmr1993 et. all: Found an alternative extension allowing jk pdf scrolling with vimium. Called Open with Drive Viewer . It requires a right click but perhaps someone know a vimium binding for that?

@DiogoFerrari
Copy link

I have a workaround for this. Check https://github.com/DiogoFerrari/vi-keybinding. Any contribution is welcome.

@kabeersvohra
Copy link

I have also developed a solution for this with a chrome extension that communicates with vimium++ perfectly, message me if you have any other feature requests or bug reports

@john1625b
Copy link

@KVohra95 Do you have a pdf plugin that works with the regular Vimium?

@damaru2
Copy link

damaru2 commented Feb 15, 2018

@kabeersvohra It doesn't work for me

@kabeersvohra
Copy link

@john1625b sorry, this relies on the capabilities of Vimium++

@damaru2 have you got Vimium++ and have you made sure to add the extension id to the whitelist as in the readme of the extension?

@damaru2
Copy link

damaru2 commented Feb 15, 2018

@kabeersvohra Ok, it works now, my bad. By default you have in vimium three ids and in a comment it says # modified { Vomnibar Page, X New Tab, PDF Viewer } so I had assumed the third id was the one of your pdf viewer. Thanks.

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