aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2020-01-18 21:17:15 -0300
committerSilvio Rhatto <rhatto@riseup.net>2020-01-18 21:17:15 -0300
commit71ede37ccd714994c3707d14a1db025bf5c81d88 (patch)
tree90dce4ce27d9ec3f1f22bd7e1c9ea87e92af2a51
parent0a74f77fae860461ab77c40ab352d96c23c14638 (diff)
downloadluakit-71ede37ccd714994c3707d14a1db025bf5c81d88.tar.gz
luakit-71ede37ccd714994c3707d14a1db025bf5c81d88.tar.bz2
Feat: binding to reload all tabs
-rw-r--r--config.dot/luakit.link/keys.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/config.dot/luakit.link/keys.lua b/config.dot/luakit.link/keys.lua
index f03a58f..1c53692 100644
--- a/config.dot/luakit.link/keys.lua
+++ b/config.dot/luakit.link/keys.lua
@@ -95,4 +95,12 @@ modes.add_binds("normal", {
luakit.selection.clipboard = link
w:notify("Yanked as shareable link: " .. link)
end},
+
+ -- Reload all tabs
+ -- See https://www.reddit.com/r/luakit/comments/pjepd/bind_a_shortcut_to_reload_all_tabs/
+ { "^R$", function (w)
+ for ti = 1, w.tabs:count() do
+ w.tabs:atindex(ti):reload()
+ end
+ end},
})