2023-03-22 16:36:03 +03:00
|
|
|
# `Multiple`
|
2021-09-04 23:01:34 +03:00
|
|
|
|
2023-03-21 08:01:24 +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 act = wezterm.action
|
|
|
|
|
2023-03-20 04:26:21 +03:00
|
|
|
config.keys = {
|
|
|
|
{
|
|
|
|
key = 'LeftArrow',
|
|
|
|
action = act.Multiple {
|
|
|
|
act.SendKey { key = 'l' },
|
|
|
|
act.SendKey { key = 'e' },
|
|
|
|
act.SendKey { key = 'f' },
|
|
|
|
act.SendKey { key = 't' },
|
2022-07-19 17:54:31 +03:00
|
|
|
},
|
|
|
|
},
|
2021-09-04 23:01:34 +03:00
|
|
|
}
|
|
|
|
```
|