diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-09-26 14:28:43 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-09-26 14:28:43 -0300 |
commit | 006ac7909157295c25a53dcb10eaeaadcc8d3d02 (patch) | |
tree | 7f9f545ccd52c7864a00682cf2a25aec328cd7b6 | |
parent | e029478a7fa08192b5adb3356f99226adc1525ce (diff) | |
download | luakit-006ac7909157295c25a53dcb10eaeaadcc8d3d02.tar.gz luakit-006ac7909157295c25a53dcb10eaeaadcc8d3d02.tar.bz2 |
Adds tabmove command
-rw-r--r-- | config.dot/luakit.link/keys.lua | 10 |
1 files changed, 10 insertions, 0 deletions
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" }) |