mirror of
https://github.com/danielepintore/dotfiles.git
synced 2026-06-15 20:25:13 +02:00
feat: add ctrl-d and ctrl-f keybind to move down/up in copy mode
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user