qutebrowser / qutebrowser

A keyboard-driven, vim-like browser based on Python and Qt.
https://www.qutebrowser.org/
GNU General Public License v3.0
9.45k stars 1.01k forks source link

Method to download-open a hint #8230

Open OmegaLambda1998 opened 2 weeks ago

OmegaLambda1998 commented 2 weeks ago

So I've been trying for a while to get a hint keybind that will essentially open the download prompt (:download {hint-url}) and then automatically prompt-open-download. If there's an pre-existing method to consistently do this, I'd love to know, as I haven't been able to find one. The ideas I had thusfar include:

The best workaround I found was hint target download ;; cmd-later <some arbitrary amount of time> prompt-open-download. Of course, this is unideal because either the cmd-later runs before I have selected a hint, or I have to awkwardly wait for the prompt to be accepted.

Some suggestion for improvements which could help with this (and in general coud make a lot of similar issues easier to handle

The-Compiler commented 2 weeks ago

As for the commandline-parsing, see #2017 - that alone wouldn't help here though, as chained commands are asynchronous, there is no notation of "run this after the download finished". See #3007 for that.

As for the segfault you mention, I cannot reproduce. Could you please open a separate issue with more detailed reproduction steps (e.g. what website you were trying on, and with which link)?

OmegaLambda1998 commented 2 weeks ago

Cool, I had browsed those issues previously but wasn't certain if the state had changed. I will create a new issue for the segfault, so this one can be closed

The-Compiler commented 2 weeks ago

I suppose this one can stay open, you have a couple good points regarding e.g. the arguments for download there.