feat: add ctrl-d and ctrl-f keybind to move down/up in copy mode

This commit is contained in:
2026-02-01 19:04:48 +01:00
parent 23f428df6e
commit 0a83f096fc

View File

@@ -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