From d2a11be56258683df2eaf908e8d794aba4fcb67a Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Mon, 18 Sep 2017 10:23:35 +0200 Subject: [PATCH] wait I can indent this now --- config/qutebrowser/config.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/config/qutebrowser/config.py b/config/qutebrowser/config.py index d9e4605..d68fd70 100644 --- a/config/qutebrowser/config.py +++ b/config/qutebrowser/config.py @@ -24,4 +24,16 @@ c.url.start_pages = ["https://calendar.google.com"] config.bind("", "back", mode="normal") config.bind("x", "spawn --detach mpv {url}", mode="normal") config.bind(";x", "hint links spawn --detach mpv {hint-url}", mode="normal") -config.bind("z", 'enter-mode insert ;; jseval --quiet var inputs = document.getElementsByTagName("input"); for(var i = 0; i < inputs.length; i++) { var hidden = false; for(var j = 0; j < inputs[i].attributes.length; j++) { hidden = hidden || inputs[i].attributes[j].value.includes("hidden"); }; if(!hidden) { inputs[i].focus(); break; } }', mode="normal") +config.bind("z", 'enter-mode insert ;; \ + jseval --quiet \ + var inputs = document.getElementsByTagName("input"); \ + for(var i = 0; i < inputs.length; i++) { \ + var hidden = false; \ + for(var j = 0; j < inputs[i].attributes.length; j++) { \ + hidden = hidden || inputs[i].attributes[j].value.includes("hidden"); \ + }; \ + if(!hidden) { \ + inputs[i].focus(); \ + break; \ + } \ + }', mode="normal")