aboutsummaryrefslogtreecommitdiff
path: root/config.lua
diff options
context:
space:
mode:
Diffstat (limited to 'config.lua')
-rw-r--r--config.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/config.lua b/config.lua
index eafc413..68bd01b 100644
--- a/config.lua
+++ b/config.lua
@@ -108,6 +108,17 @@ web.keymap.set('n', 'b', function()
end)
end)
+-- 1-0 for tab indexes 1-10
+for index = 1, 10 do
+ local key = index
+ if index >= 10 then key = 0 end
+ web.keymap.set('n', '<space>' .. key, function()
+ local views = web.view.list()
+ if index > #views then return end
+ web.view.select(views[index].id)
+ end)
+end
+
-- Next view
web.keymap.set('n', 'tn', function()
local views = web.view.list()