@@ -307,6 +307,40 @@ local pane_select_mode = {
307307--- @alias MoveTabRelative fun ( index : T<integer> ): { MoveTabRelative : T<integer> }
308308--- @alias Multiple fun ( events : ({ [ string] : any }| KeyAssignment )[]): { Multiple : ({ [ string] : any }| KeyAssignment )[] }
309309
310+ --- @generic T
311+ --- @alias Actions
312+ --- | { ActivateKeyTable: ActivateKeyTableParams }
313+ --- | { ActivatePaneByIndex: T<integer> }
314+ --- | { ActivatePaneDirection: T<PaneDirection> }
315+ --- | { ActivateTab: T<integer> }
316+ --- | { ActivateTabRelative: T<integer> }
317+ --- | { ActivateTabRelativeNoWrap: T<integer> }
318+ --- | { ActivateWindow: T<integer> }
319+ --- | { ActivateWindowRelative: T<integer> }
320+ --- | { ActivateWindowRelativeNoWrap: T<integer> }
321+ --- | { AdjustPaneSize: { [1]: PaneDirection, [2]: integer } }
322+ --- | { AttachDomain: T<string> }
323+ --- | { CharSelect: CharSelectParams }
324+ --- | { ClearScrollback: ScrollbackEraseMode }
325+ --- | { CloseCurrentPane: { confirm: boolean } }
326+ --- | { CloseCurrentTab: { confirm: boolean } }
327+ --- | { CompleteSelection: ClipboardCopyDestination }
328+ --- | { CompleteSelectionOrOpenLinkAtMouseCursor: ClipboardCopyDestination }
329+ --- | { Confirmation: ConfirmationParams }
330+ --- | { CopyMode: CopyModeParams }
331+ --- | { CopyTo: ClipboardCopyDestination }
332+ --- | { DetachDomain: SpawnTabDomain }
333+ --- | { EmitEvent: T<string> }
334+ --- | { ExtendSelectionToMouseCursor: SelectionMode }
335+ --- | { InputSelector: InputSelectorParams }
336+ --- | { MoveTab: T<integer> }
337+ --- | { MoveTabRelative: T<integer> }
338+ --- | { Multiple: ({ [string]: any }|KeyAssignment)[] }
339+ --- | { PaneSelect: PaneSelectParams }
340+ --- | { PasteFrom: ClipboardPasteDestination }
341+ --- | { PromptInputLine: PromptInputLineParams }
342+ --- | { QuickSelectArgs: QuickSelectArgsParams }
343+
310344--- @class InputSelectorParams
311345--- The title that will be set for the overlay pane.
312346---
@@ -540,7 +574,7 @@ local pane_direction = {
540574--- that makes it a bit easier to identify where syntax errors may exist
541575--- in your configuration file.
542576---
543- --- @class KeyAssignment
577+ --- @class KeyAssignments
544578--- @field ActivateCommandPalette " ActivateCommandPalette"
545579--- @field ActivateCopyMode " ActivateCopyMode"
546580--- @field ActivateKeyTable ActivateKeyTable
@@ -627,4 +661,93 @@ local pane_direction = {
627661--- @field ToggleFullScreen " ToggleFullScreen"
628662--- @field TogglePaneZoomState " TogglePaneZoomState"
629663
664+ --- @enum (key ) KeyAssignmentLiterals
665+ local key_assignment = {
666+ ActivateCommandPalette = 1 ,
667+ ActivateCopyMode = 1 ,
668+ ActivateKeyTable = 1 ,
669+ ActivateLastTab = 1 ,
670+ ActivatePaneByIndex = 1 ,
671+ ActivatePaneDirection = 1 ,
672+ ActivateTab = 1 ,
673+ ActivateTabRelative = 1 ,
674+ ActivateTabRelativeNoWrap = 1 ,
675+ ActivateWindow = 1 ,
676+ ActivateWindowRelative = 1 ,
677+ ActivateWindowRelativeNoWrap = 1 ,
678+ AdjustPaneSize = 1 ,
679+ AttachDomain = 1 ,
680+ CharSelect = 1 ,
681+ ClearKeyTableStack = 1 ,
682+ ClearScrollback = 1 ,
683+ ClearSelection = 1 ,
684+ CloseCurrentPane = 1 ,
685+ CloseCurrentTab = 1 ,
686+ CompleteSelection = 1 ,
687+ CompleteSelectionOrOpenLinkAtMouseCursor = 1 ,
688+ Copy = 1 ,
689+ CopyMode = 1 ,
690+ CopyTo = 1 ,
691+ DecreaseFontSize = 1 ,
692+ DetachDomain = 1 ,
693+ DisableDefaultAssignment = 1 ,
694+ EmitEvent = 1 ,
695+ ExtendSelectionToMouseCursor = 1 ,
696+ Hide = 1 ,
697+ HideApplication = 1 ,
698+ IncreaseFontSize = 1 ,
699+ InputSelector = 1 ,
700+ MoveTab = 1 ,
701+ MoveTabRelative = 1 ,
702+ Multiple = 1 ,
703+ Nop = 1 ,
704+ OpenLinkAtMouseCursor = 1 ,
705+ PaneSelect = 1 ,
706+ Paste = 1 ,
707+ PasteFrom = 1 ,
708+ PastePrimarySelection = 1 ,
709+ PopKeyTable = 1 ,
710+ PromptInputLine = 1 ,
711+ QuickSelect = 1 ,
712+ QuickSelectArgs = 1 ,
713+ QuitApplication = 1 ,
714+ ReloadConfiguration = 1 ,
715+ ResetFontAndWindowSize = 1 ,
716+ ResetFontSize = 1 ,
717+ ResetTerminal = 1 ,
718+ RotatePanes = 1 ,
719+ ScrollByCurrentEventWheelDelta = 1 ,
720+ ScrollByLine = 1 ,
721+ ScrollByPage = 1 ,
722+ ScrollToBottom = 1 ,
723+ ScrollToPrompt = 1 ,
724+ ScrollToTop = 1 ,
725+ Search = 1 ,
726+ SelectTextAtMouseCursor = 1 ,
727+ SendKey = 1 ,
728+ SendString = 1 ,
729+ SetPaneZoomState = 1 ,
730+ Show = 1 ,
731+ ShowDebugOverlay = 1 ,
732+ ShowLauncher = 1 ,
733+ ShowLauncherArgs = 1 ,
734+ ShowTabNavigator = 1 ,
735+ SpawnCommandInNewTab = 1 ,
736+ SpawnCommandInNewWindow = 1 ,
737+ SpawnTab = 1 ,
738+ SpawnWindow = 1 ,
739+ SplitHorizontal = 1 ,
740+ SplitPane = 1 ,
741+ SplitVertical = 1 ,
742+ StartWindowDrag = 1 ,
743+ SwitchToWorkspace = 1 ,
744+ SwitchWorkspaceRelative = 1 ,
745+ ToggleAlwaysOnBottom = 1 ,
746+ ToggleAlwaysOnTop = 1 ,
747+ ToggleFullScreen = 1 ,
748+ TogglePaneZoomState = 1 ,
749+ }
750+
751+ --- @alias KeyAssignment KeyAssignment | KeyAssignmentLiterals | Actions
752+
630753-- vim: set ts=2 sts=2 sw=2 et ai si sta:
0 commit comments