Add Multiple key assignment
refs: https://github.com/wez/wezterm/pull/1091
This commit is contained in:
1 parent
67e8bdc5c2
commit
4c8ccf8efc
6 files changed
+33
-2
No files matched your search
@@ -0,0 +1,21 @@
|
||||
# Multiple
|
||||
|
||||
*Since: nightly builds only*
|
||||
|
||||
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
|
||||
return {
|
||||
keys = {
|
||||
{key="LeftArrow", action={Multiple={
|
||||
{SendKey={key="l"}},
|
||||
{SendKey={key="e"}},
|
||||
{SendKey={key="f"}},
|
||||
{SendKey={key="t"}},
|
||||
}}}
|
||||
}
|
||||
}
|
||||
```
|
||||
@@ -18,7 +18,6 @@ shells and applications.
|
||||
The following configuration achieves that same effect:
|
||||
|
||||
```lua
|
||||
local wezterm = require 'wezterm';
|
||||
return {
|
||||
keys = {
|
||||
-- Rebind OPT-Left, OPT-Right as ALT-b, ALT-f respectively to match Terminal.app behavior
|
||||
@@ -27,3 +26,5 @@ return {
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
See also [Multiple](Multiple.md) for combining multiple actions in a single press.
|
||||
@@ -32,4 +32,5 @@ return {
|
||||
}
|
||||
```
|
||||
|
||||
See also [SendKey](SendKey.md) which makes the example above much more convenient.
|
||||
See also [SendKey](SendKey.md) which makes the example above much more convenient,
|
||||
and [Multiple](Multiple.md) for combining multiple actions in a single press.
|
||||
Reference in new issue
Block a user