KeyAssignment
enumeration¶
A KeyAssignment
represents a pre-defined function that can be applied
to control the Window, Tab, Pane state typically when a key or mouse event
is triggered.
Internally, in the underlying Rust code, KeyAssignment
is an enum
type with a variant for each possible action known to wezterm. In Lua,
enums get represented as a table with a single key corresponding to
the variant name.
In most cases the wezterm.action
function is
used to create an instance of KeyAssignment
and make it a bit more
clear and convenient.
Available Key Assignments¶
- ActivateCommandPalette
- ActivateCopyMode
- ActivateKeyTable
- ActivateLastTab
- ActivatePaneByIndex
- ActivatePaneDirection
- ActivateTab
- ActivateTabRelative
- ActivateTabRelativeNoWrap
- ActivateWindow
- ActivateWindowRelative
- ActivateWindowRelativeNoWrap
- AdjustPaneSize
- AttachDomain
- CharSelect
- ClearKeyTableStack
- ClearScrollback
- ClearSelection
- CloseCurrentPane
- CloseCurrentTab
- CompleteSelection
- CompleteSelectionOrOpenLinkAtMouseCursor
- Copy
- CopyTo
- DecreaseFontSize
- DetachDomain
- DisableDefaultAssignment
- EmitEvent
- ExtendSelectionToMouseCursor
- Hide
- HideApplication
- IncreaseFontSize
- InputSelector
- MoveTab
- MoveTabRelative
- Multiple
- Nop
- OpenLinkAtMouseCursor
- PaneSelect
- Paste
- PasteFrom
- PastePrimarySelection
- PopKeyTable
- PromptInputLine
- QuickSelect
- QuickSelectArgs
- QuitApplication
- ReloadConfiguration
- ResetFontAndWindowSize
- ResetFontSize
- ResetTerminal
- RotatePanes
- ScrollByCurrentEventWheelDelta
- ScrollByLine
- ScrollByPage
- ScrollToBottom
- ScrollToPrompt
- ScrollToTop
- Search
- SelectTextAtMouseCursor
- SendKey
- SendString
- SetPaneZoomState
- SetWindowLevel
- Show
- ShowDebugOverlay
- ShowLauncher
- ShowLauncherArgs
- ShowTabNavigator
- SpawnCommandInNewTab
- SpawnCommandInNewWindow
- SpawnTab
- SpawnWindow
- SplitHorizontal
- SplitPane
- SplitVertical
- StartWindowDrag
- SwitchToWorkspace
- SwitchWorkspaceRelative
- ToggleAlwaysOnBottom
- ToggleAlwaysOnTop
- ToggleFullScreen
- TogglePaneZoomState