Files
LLeMbas-TTY/docs/config/lua/keyassignment/MoveTabRelative.md
T
2022-07-15 06:39:14 -07:00

20 lines
422 B
Markdown

# MoveTabRelative
Move the current tab relative to its peers. The argument specifies an
offset. eg: `-1` moves the tab to the left of the current tab, while `1` moves
the tab to the right.
```lua
local wezterm = require 'wezterm'
local act = wezterm.action
return {
keys = {
{key="{", mods="SHIFT|ALT", action=act.MoveTabRelative(-1)},
{key="}", mods="SHIFT|ALT", action=act.MoveTabRelative(1)},
}
}
```