mirror of
https://github.com/foo-dogsquared/dotfiles.git
synced 2025-02-07 12:19:02 +00:00
wezterm: add bindings for quick tab navigation
This commit is contained in:
parent
84a7e6d1e3
commit
94286cf334
@ -34,5 +34,6 @@ end
|
|||||||
|
|
||||||
-- The keymod to be used for the entire configuration.
|
-- The keymod to be used for the entire configuration.
|
||||||
module.keymod = "CTRL|SHIFT"
|
module.keymod = "CTRL|SHIFT"
|
||||||
|
module.alt_keymod = "CTRL|SHIFT|ALT"
|
||||||
|
|
||||||
return module
|
return module
|
||||||
|
@ -4,6 +4,7 @@ local events = require("config/events")
|
|||||||
local act = wezterm.action
|
local act = wezterm.action
|
||||||
|
|
||||||
local keymod = base.keymod
|
local keymod = base.keymod
|
||||||
|
local alt_keymod = base.alt_keymod
|
||||||
local module = {}
|
local module = {}
|
||||||
|
|
||||||
function module.apply_to_config(config)
|
function module.apply_to_config(config)
|
||||||
@ -94,6 +95,10 @@ function module.apply_to_config(config)
|
|||||||
one_shot = true,
|
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
|
-- Hints and quick selections
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user