1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-25 22:33:52 +03:00
wezterm/docs/config/lua/keyassignment/Multiple.md

25 lines
500 B
Markdown
Raw Normal View History

# `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' },
},
},
}
```