62 lines
2.4 KiB
Lua
62 lines
2.4 KiB
Lua
local wezterm = require('wezterm')
|
|
|
|
return {
|
|
disable_default_key_bindings = true,
|
|
leader = { key = 'a', mods = 'CTRL', timeout_milliseconds = 100000 },
|
|
keys = {
|
|
{ key = 'r', mods = 'SUPER', action = 'ReloadConfiguration' },
|
|
{ key = 'z', mods = 'SUPER', action = wezterm.action({ ActivateTabRelative = -1 }) },
|
|
{ key = 'x', mods = 'SUPER', action = wezterm.action({ ActivateTabRelative = 1 }) },
|
|
{ key = 't', mods = 'SUPER', action = wezterm.action({ SpawnTab = 'CurrentPaneDomain' }) },
|
|
{ key = 'w', mods = 'SUPER', action = wezterm.action({ CloseCurrentPane = { confirm = false } }) },
|
|
{ key = 'w', mods = 'ALT', action = wezterm.action({ CloseCurrentTab = { confirm = false } }) },
|
|
{ key = 'c', mods = 'SUPER', action = wezterm.action({ CopyTo = 'Clipboard' }) },
|
|
{ key = 'v', mods = 'SUPER', action = wezterm.action({ PasteFrom = 'Clipboard' }) },
|
|
-- NOTE: Pane Splitting
|
|
{
|
|
key = 'RightArrow',
|
|
mods = 'SHIFT',
|
|
action = wezterm.action({ SplitPane = { direction = 'Right' } }),
|
|
},
|
|
{
|
|
key = 'LeftArrow',
|
|
mods = 'SHIFT',
|
|
action = wezterm.action({ SplitPane = { direction = 'Left' } }),
|
|
},
|
|
{
|
|
key = 'UpArrow',
|
|
mods = 'SHIFT',
|
|
action = wezterm.action({ SplitPane = { direction = 'Up' } }),
|
|
},
|
|
{
|
|
key = 'DownArrow',
|
|
mods = 'SHIFT',
|
|
action = wezterm.action({ SplitPane = { direction = 'Down' } }),
|
|
},
|
|
-- NOTE: Pane Selecting
|
|
{
|
|
key = 'RightArrow',
|
|
mods = 'CTRL',
|
|
action = wezterm.action({ ActivatePaneDirection = 'Right' }),
|
|
},
|
|
{
|
|
key = 'LeftArrow',
|
|
mods = 'CTRL',
|
|
action = wezterm.action({ ActivatePaneDirection = 'Left' }),
|
|
},
|
|
{
|
|
key = 'UpArrow',
|
|
mods = 'CTRL',
|
|
action = wezterm.action({ ActivatePaneDirection = 'Up' }),
|
|
},
|
|
{
|
|
key = 'DownArrow',
|
|
mods = 'CTRL',
|
|
action = wezterm.action({ ActivatePaneDirection = 'Down' }),
|
|
},
|
|
{ key = '=', mods = 'CTRL', action = 'IncreaseFontSize' },
|
|
{ key = '-', mods = 'CTRL', action = 'DecreaseFontSize' },
|
|
{ key = '0', mods = 'CTRL', action = 'ResetFontAndWindowSize' },
|
|
},
|
|
}
|