On Thu, Feb 20, 2020 at 03:42:10PM +0000, Christian Helbling wrote:
> 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.I think what Jérôme meant is something like an alias ":my-own-cmd one two" which then runs ":cmd1 one ;; cmd2 two". I answered on Reddit: https://www.reddit.com/r/qutebrowser/comments/f5hoes/bind_chained_commands_with_arguments_for_each/ Florian -- [email protected] (Mail/XMPP) | https://www.qutebrowser.org https://bruhin.software/ | https://github.com/sponsors/The-Compiler/ GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc I love long mails! | https://email.is-not-s.ms/
signature.asc
Description: PGP signature
