2022-08-04 16:15:56 +03:00
|
|
|
```lua
|
|
|
|
local wezterm = require 'wezterm'
|
|
|
|
local act = wezterm.action
|
|
|
|
|
|
|
|
return {
|
|
|
|
key_tables = {
|
|
|
|
search_mode = {
|
|
|
|
{ key = 'Enter', mods = 'NONE', action = act.CopyMode 'PriorMatch' },
|
|
|
|
{ key = 'Escape', mods = 'NONE', action = act.CopyMode 'Close' },
|
|
|
|
{ key = 'n', mods = 'CTRL', action = act.CopyMode 'NextMatch' },
|
|
|
|
{ key = 'p', mods = 'CTRL', action = act.CopyMode 'PriorMatch' },
|
|
|
|
{ key = 'r', mods = 'CTRL', action = act.CopyMode 'CycleMatchType' },
|
|
|
|
{ key = 'u', mods = 'CTRL', action = act.CopyMode 'ClearPattern' },
|
|
|
|
{
|
|
|
|
key = 'PageUp',
|
|
|
|
mods = 'NONE',
|
|
|
|
action = act.CopyMode 'PriorMatchPage',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
key = 'PageDown',
|
|
|
|
mods = 'NONE',
|
|
|
|
action = act.CopyMode 'NextMatchPage',
|
|
|
|
},
|
|
|
|
{ key = 'UpArrow', mods = 'NONE', action = act.CopyMode 'PriorMatch' },
|
2023-02-05 19:22:33 +03:00
|
|
|
{ key = 'DownArrow', mods = 'NONE', action = act.CopyMode 'NextMatch' },
|
2022-08-04 16:15:56 +03:00
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
```
|