summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-22 20:08:55 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-22 20:08:55 +0100
commitc91953ca7bcb4d89d7de35f6d0634fe6931d6fcd (patch)
tree17d277dc9b8094ddf2d64ca570ceb19d483eb084
parent06e4b083e6b31ff07dfa5db2b9c69427313c4ddf (diff)
downloaddotfiles-c91953ca7bcb4d89d7de35f6d0634fe6931d6fcd.tar.gz
dotfiles-c91953ca7bcb4d89d7de35f6d0634fe6931d6fcd.tar.bz2
dotfiles-c91953ca7bcb4d89d7de35f6d0634fe6931d6fcd.zip
luakit: Add J,K binds for prev/next tab
Inspired by vimium for chromium. :)
-rw-r--r--.config/luakit/binds.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/.config/luakit/binds.lua b/.config/luakit/binds.lua
new file mode 100644
index 0000000..2fd6f91
--- /dev/null
+++ b/.config/luakit/binds.lua
@@ -0,0 +1,10 @@
+dofile("/etc/xdg/luakit/binds.lua")
+
+local key = lousy.bind.key
+
+add_binds("normal", {
+ key({}, "J", "Go to previous tab.",
+ function (w) w:prev_tab() end),
+ key({}, "K", "Go to next tab.",
+ function (w) w:next_tab() end),
+})