diff --git a/.config/wezterm/wezterm.lua b/.config/wezterm/wezterm.lua index b8f7cb1..8006182 100644 --- a/.config/wezterm/wezterm.lua +++ b/.config/wezterm/wezterm.lua @@ -50,6 +50,7 @@ config.keys = { -- Vim copy mode { key = 'Enter', mods = 'CTRL', action = act.ActivateCopyMode, }, + --{ key = 'd', mods = 'CTRL', action = act.CopyMode {MoveByPage = 0.5}, }, -- Tabs { key = 'Space', mods = 'CTRL', action = act.SpawnTab 'CurrentPaneDomain' }, @@ -83,6 +84,20 @@ config.keys = { }, } +-- Add custom keybinding to copy_mode +local key_tables = wezterm.gui.default_key_tables() +table.insert(key_tables.copy_mode, { + key = 'd', + mods = 'CTRL', + action = act.CopyMode { MoveByPage = 0.5 } +}) +table.insert(key_tables.copy_mode, { + key = 'f', + mods = 'CTRL', + action = act.CopyMode { MoveByPage = -0.5 } +}) +config.key_tables = key_tables + -- Tab bar config.use_fancy_tab_bar = false config.tab_bar_at_bottom = true