From valentin at too.gy Sun Jun 3 01:05:40 2018 From: valentin at too.gy (Valentin Iovene) Date: Sun, 3 Jun 2018 01:05:40 +0200 Subject: [qutebrowser] Open in new window by default when invoked with HTTP address as argument Message-ID: <20180602230540.ra5k63ahbbxpikzj@stewie> Hi, First, thanks everyone for contributing to this project. I would like to change the default behaviour of qutebrowser in the particular case where it's invoked with a HTTP link as argument: > qutebrowser https://qutebrowser.org I know about this possibility: > qutebrowser --target window https://qutebrowser.org Thing is I want qutebrowser to be my default browser and by default open a new window whenever another application opens up a link. Maybe there's a solution with xdg-open to pass that extra target arg by default but I'm not sure how to do that and I can't find anything about that. Does anyone have a solution to this problem? Side note: using arch linux here Thanks, -- Valentin Iovene From valentin at too.gy Sun Jun 3 12:43:21 2018 From: valentin at too.gy (Valentin Iovene) Date: Sun, 3 Jun 2018 12:43:21 +0200 Subject: [qutebrowser] Save to pocket, don't really open the url (key binding) Message-ID: <20180603104321.flufvesatkpwvwdh@stewie> I have the following line in `~/.config/qutebrowser/config.py`: > config.bind(',s', 'open -t https://getpocket.com/edit?url={url}') It allows me to save the current page to Pocket (getpocket.com). However, it's opening a new tab with the above URL. Is there a way to open the URL in the background? -- Valentin Iovene From me at the-compiler.org Mon Jun 4 09:16:27 2018 From: me at the-compiler.org (Florian Bruhin) Date: Mon, 4 Jun 2018 09:16:27 +0200 Subject: [qutebrowser] Open in new window by default when invoked with HTTP address as argument In-Reply-To: <20180602230540.ra5k63ahbbxpikzj@stewie> References: <20180602230540.ra5k63ahbbxpikzj@stewie> Message-ID: <20180604071627.35vkhopgophjqrqz@hooch.localdomain> Hey, On Sun, Jun 03, 2018 at 01:05:40AM +0200, Valentin Iovene via qutebrowser wrote: > I would like to change the default behaviour of qutebrowser in the > particular case where it's invoked with a HTTP link as argument: > > > qutebrowser https://qutebrowser.org > > I know about this possibility: > > > qutebrowser --target window https://qutebrowser.org > > Thing is I want qutebrowser to be my default browser and by default > open a new window whenever another application opens up a link. > > Maybe there's a solution with xdg-open to pass that extra target arg by > default but I'm not sure how to do that and I can't find anything about > that. > > Does anyone have a solution to this problem? You want ":set new_instance_open_target window" ;-) Florian -- https://www.qutebrowser.org | me at 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/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: From me at the-compiler.org Mon Jun 4 09:18:05 2018 From: me at the-compiler.org (Florian Bruhin) Date: Mon, 4 Jun 2018 09:18:05 +0200 Subject: [qutebrowser] Save to pocket, don't really open the url (key binding) In-Reply-To: <20180603104321.flufvesatkpwvwdh@stewie> References: <20180603104321.flufvesatkpwvwdh@stewie> Message-ID: <20180604071805.ddoo366m6chq6tm7@hooch.localdomain> On Sun, Jun 03, 2018 at 12:43:21PM +0200, Valentin Iovene via qutebrowser wrote: > I have the following line in `~/.config/qutebrowser/config.py`: > > > config.bind(',s', 'open -t https://getpocket.com/edit?url={url}') > > It allows me to save the current page to Pocket (getpocket.com). > > However, it's opening a new tab with the above URL. > > Is there a way to open the URL in the background? You can use -b instead to open a background tab, but you can't open an URL without opening a tab at all. Florian -- https://www.qutebrowser.org | me at 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/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: From felix.vanderjeugt at gmail.com Mon Jun 4 10:09:01 2018 From: felix.vanderjeugt at gmail.com (Felix Van der Jeugt) Date: Mon, 04 Jun 2018 10:09:01 +0200 Subject: [qutebrowser] Save to pocket, don't really open the url (key binding) In-Reply-To: <20180604071805.ddoo366m6chq6tm7@hooch.localdomain> References: <20180603104321.flufvesatkpwvwdh@stewie> <20180604071805.ddoo366m6chq6tm7@hooch.localdomain> Message-ID: <152809974144.1931.6323357396319315579@abysm> Quoting Florian Bruhin (2018-06-04 09:18:05) > You can use -b instead to open a background tab, but you can't open an > URL without opening a tab at all. I might add to Florian: you can't open a URL *in qutebrowser* without opening a tab at all. You could, however, open a URL in a userscript without opening a tab in qutebrowser. You can bind a userscript to a hint, so the hint-selected URL is passed to it. In the userscript, you could just cURL to "https://getpocket.com/edit?url=$QUTE_URL". See https://qutebrowser.org/doc/userscripts.html for more information on userscripts. Sincerely, Felix -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: signature URL: From me at the-compiler.org Mon Jun 4 10:35:45 2018 From: me at the-compiler.org (Florian Bruhin) Date: Mon, 4 Jun 2018 10:35:45 +0200 Subject: [qutebrowser] Save to pocket, don't really open the url (key binding) In-Reply-To: <152809974144.1931.6323357396319315579@abysm> References: <20180603104321.flufvesatkpwvwdh@stewie> <20180604071805.ddoo366m6chq6tm7@hooch.localdomain> <152809974144.1931.6323357396319315579@abysm> Message-ID: <20180604083545.w2nv6guxeerfbtwt@hooch.localdomain> On Mon, Jun 04, 2018 at 10:09:01AM +0200, Felix Van der Jeugt wrote: > Quoting Florian Bruhin (2018-06-04 09:18:05) > > You can use -b instead to open a background tab, but you can't open an > > URL without opening a tab at all. > > I might add to Florian: you can't open a URL *in qutebrowser* without opening a tab at all. You could, however, open a URL in a userscript without opening a tab in qutebrowser. > > You can bind a userscript to a hint, so the hint-selected URL is passed to it. In the userscript, you could just cURL to "https://getpocket.com/edit?url=$QUTE_URL". See https://qutebrowser.org/doc/userscripts.html for more information on userscripts. That works - but note that curl won't have qutebrowser's cookies, so you presumably need to find a way to log in to Pocket that way. Maybe there's some commandline tool (or Python library) to interact with pocket which is still maintained - using something like that would probably make things easier. Florian -- https://www.qutebrowser.org | me at 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/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: From me at the-compiler.org Sun Jun 10 16:35:55 2018 From: me at the-compiler.org (Florian Bruhin) Date: Sun, 10 Jun 2018 16:35:55 +0200 Subject: [qutebrowser] qutebrowser v1.3.2 released! Message-ID: <20180610143555.t462sqvbe4tcjvxu@hooch.localdomain> Hey, I'm happy to announce that I just released qutebrowser v1.3.2 with some more (and improved) workarounds for Qt 5.11 bugs, plus some other bugfixes: - QtWebEngine: Improved workaround for a bug in Qt 5.11 where only the top/bottom half of the window is used. - QtWebEngine: Work around a bug in Qt 5.11 where an endless loading-loop is triggered when clicking a link with an unknown scheme. - QtWebEngine: When switching between pages with changed settings, less unnecessary reloads are done now. - QtWebEngine: It's now possible to open external links such as `magnet://` or `mailto:` via hints. Enjoy! A v1.4.0 with new features (and Qt 5.11 bundled for Windows/macOS) will hopefully follow in around two weeks, once PyQt 5.11 is released. Florian -- https://www.qutebrowser.org | me at 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/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: From kale.kundert at ucsf.edu Wed Jun 13 20:42:33 2018 From: kale.kundert at ucsf.edu (Kale Kundert) Date: Wed, 13 Jun 2018 11:42:33 -0700 Subject: [qutebrowser] Key binding to toggle option Message-ID: <9f3d15fe-52e2-8dba-7b84-48fbabf0d017@ucsf.edu> Hi all, Does anyone know if there's a way to create a key binding that will toggle an option between one of two (or more) values.? Specifically, I'm trying to create a hotkey that will alternate between two proxies, e.g. ':set content.proxy system' and ':set content.proxy socks://localhost:9050'.? I was hoping to find a command like ':set-toggle