2021-09-04 23:01:34 +03:00
|
|
|
# Multiple
|
|
|
|
|
2021-12-04 18:32:21 +03:00
|
|
|
*Since: 20211204-082213-a66c61ee9*
|
2021-09-04 23:01:34 +03:00
|
|
|
|
|
|
|
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
|
2022-06-25 16:58:10 +03:00
|
|
|
local wezterm = require 'wezterm'
|
|
|
|
local act = wezterm.action
|
|
|
|
|
2021-09-04 23:01:34 +03:00
|
|
|
return {
|
|
|
|
keys = {
|
2022-06-25 16:58:10 +03:00
|
|
|
{key="LeftArrow", action=act.Multiple{
|
|
|
|
act.SendKey{key="l"},
|
|
|
|
act.SendKey{key="e"},
|
|
|
|
act.SendKey{key="f"},
|
|
|
|
act.SendKey{key="t"}
|
|
|
|
}}
|
2021-09-04 23:01:34 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|