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
603 B
603 B
ActivatePaneByIndex
Since: 20220319-142410-0fcdea07
ActivatePaneByIndex activates the pane with the specified index within
the current tab. Invalid indices are ignored.
This example causes ALT-a, ALT-b, ALT-c to switch to the 0th, 1st and 2nd panes, respectively:
local wezterm = require 'wezterm'
local act = wezterm.action
local config = {}
config.keys = {
{ key = 'a', mods = 'ALT', action = act.ActivatePaneByIndex(0) },
{ key = 'b', mods = 'ALT', action = act.ActivatePaneByIndex(1) },
{ key = 'c', mods = 'ALT', action = act.ActivatePaneByIndex(2) },
}
return config