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")