2023-03-22 16:36:03 +03:00
|
|
|
# `ActivateTabRelative`
|
2020-10-10 18:40:14 +03:00
|
|
|
|
|
|
|
Activate a tab relative to the current tab. The argument value specifies an
|
|
|
|
offset. eg: `-1` activates the tab to the left of the current tab, while `1`
|
|
|
|
activates the tab to the right.
|
|
|
|
|
|
|
|
```lua
|
2022-06-25 16:58:10 +03:00
|
|
|
local wezterm = require 'wezterm'
|
|
|
|
local act = wezterm.action
|
2023-03-20 04:26:21 +03:00
|
|
|
local config = {}
|
2022-06-25 16:58:10 +03:00
|
|
|
|
2023-03-20 04:26:21 +03:00
|
|
|
config.keys = {
|
|
|
|
{ key = '{', mods = 'ALT', action = act.ActivateTabRelative(-1) },
|
|
|
|
{ key = '}', mods = 'ALT', action = act.ActivateTabRelative(1) },
|
2020-10-10 18:40:14 +03:00
|
|
|
}
|
2023-03-20 04:26:21 +03:00
|
|
|
|
|
|
|
return config
|
2020-10-10 18:40:14 +03:00
|
|
|
```
|
|
|
|
|
2021-12-23 19:32:49 +03:00
|
|
|
See also [ActivateTabRelativeNoWrap](ActivateTabRelativeNoWrap.md)
|
|
|
|
|
2020-10-10 18:40:14 +03:00
|
|
|
|