2021-02-23 19:02:07 +03:00
|
|
|
# ScrollByLine
|
|
|
|
|
2021-03-14 21:55:12 +03:00
|
|
|
*Since: 20210314-114017-04b7cedd*
|
2021-02-23 19:02:07 +03:00
|
|
|
|
|
|
|
Adjusts the scroll position by the number of lines specified by the argument.
|
|
|
|
Negative values scroll upwards, while positive values scroll downwards.
|
|
|
|
|
|
|
|
```lua
|
2022-07-19 17:54:31 +03:00
|
|
|
local wezterm = require 'wezterm'
|
2022-06-25 16:58:10 +03:00
|
|
|
local act = wezterm.action
|
2021-02-23 19:02:07 +03:00
|
|
|
|
|
|
|
return {
|
|
|
|
keys = {
|
2022-07-19 17:54:31 +03:00
|
|
|
{ key = 'UpArrow', mods = 'SHIFT', action = act.ScrollByLine(-1) },
|
|
|
|
{ key = 'DownArrow', mods = 'SHIFT', action = act.ScrollByLine(1) },
|
|
|
|
},
|
2021-02-23 19:02:07 +03:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|