added some keymaps

This commit is contained in:
Oliver Hartmann 2023-02-28 23:05:47 +01:00
parent b199074aa7
commit 7c8ef6d0d6

View File

@ -1,4 +1,5 @@
local wezterm = require 'wezterm';
local act = wezterm.action
return {
font = wezterm.font("JetBrainsMono Nerd Font Mono"),
-- font = wezterm.font("Roboto Mono"),
@ -25,4 +26,46 @@ return {
top = 0,
bottom = 0,
},
keys = {
{
key = 'RightArrow',
mods = 'SHIFT',
action = act.ActivateTabRelative(1)
},
{
key = 'LeftArrow',
mods = 'SHIFT',
action = act.ActivateTabRelative(-1)
},
{
key = 'LeftArrow',
mods = 'ALT',
action = act.ActivatePaneDirection 'Left',
},
{
key = 'RightArrow',
mods = 'ALT',
action = act.ActivatePaneDirection 'Right',
},
{
key = 'UpArrow',
mods = 'ALT',
action = act.ActivatePaneDirection 'Up',
},
{
key = 'DownArrow',
mods = 'ALT',
action = act.ActivatePaneDirection 'Down',
},
{
key = '+',
mods = 'ALT|SHIFT',
action = wezterm.action.SplitVertical,
},
{
key = '_',
mods = 'ALT|SHIFT',
action = wezterm.action.SplitHorizontal,
},
}
}