wait I can indent this now

This commit is contained in:
Felix Van der Jeugt 2017-09-18 10:23:35 +02:00
parent c74a644e1b
commit d2a11be562
No known key found for this signature in database
GPG Key ID: 58B209295023754D

View File

@ -24,4 +24,16 @@ c.url.start_pages = ["https://calendar.google.com"]
config.bind("<backspace>", "back", mode="normal") config.bind("<backspace>", "back", mode="normal")
config.bind("x", "spawn --detach mpv {url}", 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(";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")