25 lines
374 B
Markdown
25 lines
374 B
Markdown
# CopyMode 'MoveToViewportTop'
|
|
|
|
*Since: 20220624-141144-bd1b7c5d*
|
|
|
|
Moves the CopyMode cursor position to the top of the viewport.
|
|
|
|
|
|
```lua
|
|
local wezterm = require 'wezterm'
|
|
local act = wezterm.action
|
|
|
|
return {
|
|
key_tables = {
|
|
copy_mode = {
|
|
{
|
|
key = 'H',
|
|
mods = 'NONE',
|
|
action = act.CopyMode 'MoveToViewportTop',
|
|
},
|
|
},
|
|
},
|
|
}
|
|
```
|
|
|