[qutebrowser] bind chained commands with arguments for each command ?
Christian Helbling
Christian.Helbling at localsearch.ch
Thu Feb 20 16:42:10 CET 2020
On 2020-02-20 15:54, Jerome wrote:
> If I want to bind key with some chained commands with arguments for each of them.
> For instance : save session with name argument, then load a session with session name argument and then open a new tab with a google search with the query argument.
>
> I expect to hit the binded key , and the (3) arguments (for instance) separated by space/coma or whatever.
>
> Any way to do it ?
> I read about the set-cmd-text --space , but I guess it can not work for several command.
>
> Do I have to make (python) userscript and parse the (3) command line arguments, or can it be done with "normal" conf file ?
>
> Regards,
> Jérôme.
Hi Jérôme
You can chain commands with ';;' in the config.
Example:
config.bind('gm', 'fake-key <space> ;; spawn mpv --fullscreen {url}', mode='normal')
Hope this answers your question.
Cheers
Christian
More information about the qutebrowser
mailing list