From: Silvio Rhatto Date: Tue, 26 Sep 2017 17:28:43 +0000 (-0300) Subject: Adds tabmove command X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=006ac7909157295c25a53dcb10eaeaadcc8d3d02;p=rhatto%2Fdotfiles%2Fluakit.git Adds tabmove command --- 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" })