From 006ac7909157295c25a53dcb10eaeaadcc8d3d02 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 26 Sep 2017 14:28:43 -0300 Subject: Adds tabmove command --- config.dot/luakit.link/keys.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'config.dot/luakit.link') diff --git a/config.dot/luakit.link/keys.lua b/config.dot/luakit.link/keys.lua index 0e858ad..d5cb352 100644 --- a/config.dot/luakit.link/keys.lua +++ b/config.dot/luakit.link/keys.lua @@ -6,6 +6,16 @@ local modes = require "modes" local window = require "window" +-- Commands +modes.add_cmds({ + { ":tabmove, :tabm, :tm", "Move tab to a position", function (w, m) + -- Start from zero to follow VIM standards + if m.arg ~= nil then + w.tabs:reorder(w.view, m.arg + 1) + end + end}, +}) + -- Remove some default bindings modes.remove_binds("normal", { "y" }) -- cgit v1.2.3