Files
LLeMbas-TTY/docs/config/lua/keyassignment/Multiple.md
T
Wez Furlong 0f8146b212 docs: shift from return {} style to config.something style
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
2023-03-19 18:26:21 -07:00

25 lines
494 B
Markdown

# Multiple
*Since: 20211204-082213-a66c61ee9*
Performs a sequence of multiple assignments. This is useful when you
want a single key press to trigger multiple actions.
The example below causes `LeftArrow` to effectively type `left`:
```lua
local act = wezterm.action
config.keys = {
{
key = 'LeftArrow',
action = act.Multiple {
act.SendKey { key = 'l' },
act.SendKey { key = 'e' },
act.SendKey { key = 'f' },
act.SendKey { key = 't' },
},
},
}
```