wezterm: add bindings for quick tab navigation

This commit is contained in:
Gabriel Arazas 2023-09-05 16:02:13 +08:00
parent 84a7e6d1e3
commit 94286cf334
2 changed files with 6 additions and 0 deletions

View File

@ -34,5 +34,6 @@ end
-- The keymod to be used for the entire configuration.
module.keymod = "CTRL|SHIFT"
module.alt_keymod = "CTRL|SHIFT|ALT"
return module

View File

@ -4,6 +4,7 @@ local events = require("config/events")
local act = wezterm.action
local keymod = base.keymod
local alt_keymod = base.alt_keymod
local module = {}
function module.apply_to_config(config)
@ -94,6 +95,10 @@ function module.apply_to_config(config)
one_shot = true,
}),
},
{ mods = alt_keymod, key = "h", action = act.ActivateTabRelative(-1), },
{ mods = alt_keymod, key = "j", action = act.ActivateTab(-1), },
{ mods = alt_keymod, key = "k", action = act.ActivateTab(0), },
{ mods = alt_keymod, key = "l", action = act.ActivateTabRelative(1), },
-- Hints and quick selections
{