1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-21 12:21:32 +03:00
wezterm/docs/config/lua/window/perform_action.md
2020-10-09 23:34:35 -07:00

649 B

window:perform_action(key_assignment, pane)

Since: nightly builds only

Performs a key assignment against the window and pane. There are a number of actions that can be performed against a pane in a window when configured via the keys and mouse configuration options.

This method allows your lua script to trigger those actions for itself.

The first parameter is a key assignment such as that returned by wezterm.action.

The second parameter is a pane object passed to your event callback.

For an example of this method in action, see wezterm.on Custom Events.