On Fri, Nov 09, 2018 at 10:57:04AM +0100, Valentin Iovene wrote: > Hey, thanks for you quick reply. > > On 09.11.2018 10:42, Florian Bruhin wrote: > > You can instead disable content.pdfjs and hit Ctrl-P > > (:prompt-open-download --pdfjs) in the download prompt. > > Is there a way I can make a keyboard shortcut that > 1. disables pdfjs > 2. download the file in ~/Downloads without asking > 3. re-enables pdfjs?
Don't think so, as you can't get the original URL easily when PDF.js is already open. > > In a qutebrowser-download-... directory in your OS' temporary > > directory. Don't remember where that was on macOS, but you can do > > :debug-console and this: > > > > from qutebrowser.browser import downloads > > downloads.temp_download_manager.get_tmpdir().name > > This gave me > > > /var/folders/d9/c026wqfd69d4v4__gg3dfn0h0000gq/T/qutebrowser-downloads-0q1p1npg > > No wonder I couldn't find it haha!! That /var/folders/.../ stuff seems to be the macOS equivalent to what /tmp is on Linux ;) Florian -- https://www.qutebrowser.org | m...@the-compiler.org (Mail/XMPP) GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc I love long mails! | https://email.is-not-s.ms/
Description: PGP signature