Nudge new users towards using this style:
```lua
local config = {}
config.color_scheme = 'Batman'
return config
```
and surface how to write lua modules closer to the main section
on config files. In that lua modules section, nudge towards using
a convention similar to that of the plugin spec described in
this commit: e4ae8a844d
836 B
836 B
ScrollByCurrentEventWheelDelta
Since: 20220807-113146-c2fee766
Adjusts the scroll position by the number of lines in the vertical mouse wheel delta field of the current mouse event, provided that it is a vertical mouse wheel event.
This example demonstrates a mouse assignment that is actually the default, so
there's not much point adding this to your config unless you also have set
disable_default_mouse_bindings
to true.
local act = wezterm.action
config.mouse_bindings = {
{
event = { Down = { streak = 1, button = { WheelUp = 1 } } },
mods = 'NONE',
action = act.ScrollByCurrentEventWheelDelta,
},
{
event = { Down = { streak = 1, button = { WheelDown = 1 } } },
mods = 'NONE',
action = act.ScrollByCurrentEventWheelDelta,
},
}