Documentation
¶
Index ¶
- type Action
- type ChangeTab
- type CloseCmdPalette
- type CycleDirection
- type CycleFocus
- type MovePRSelection
- type MovePaletteSelection
- type MoveRepoSelection
- type OpenBrowser
- type OpenDashboardFilter
- type OpenPRDetail
- type Quit
- type Registry
- type Result
- type ScrollPreview
- type SelectPR
- type SelectRepo
- type TabDirection
- type ToggleCmdPalette
- type ToggleKeymapOverlay
- type TriggerRefresh
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action interface {
// contains filtered or unexported methods
}
Action is a typed UI intent emitted by the keymap registry.
type ChangeTab ¶
type ChangeTab struct {
Direction TabDirection
}
type CloseCmdPalette ¶
type CloseCmdPalette struct{}
type CycleDirection ¶
type CycleDirection int
const ( FocusPrev CycleDirection = -1 FocusNext CycleDirection = 1 )
type CycleFocus ¶
type CycleFocus struct {
Direction CycleDirection
}
type MovePRSelection ¶
type MovePRSelection struct {
Delta int
}
type MovePaletteSelection ¶
type MovePaletteSelection struct {
Delta int
}
type MoveRepoSelection ¶
type MoveRepoSelection struct {
Delta int
}
type OpenBrowser ¶
type OpenBrowser struct{}
type OpenDashboardFilter ¶
type OpenDashboardFilter struct{}
type OpenPRDetail ¶
type OpenPRDetail struct{}
OpenPRDetail is emitted when Enter is pressed on the preview panel. The root model handles this by pushing the PR detail view.
type Registry ¶
type Registry struct{}
Registry routes key presses based on the active focus target.
func DefaultRegistry ¶
func DefaultRegistry() *Registry
func NewRegistry ¶
func NewRegistry() *Registry
type Result ¶
Result describes how a key press should be routed.
When PassThrough is true, the caller should let the focused component consume the key. When Action is non-nil, the registry has handled the key and produced an intent for the root model.
type ScrollPreview ¶
type ScrollPreview struct {
Delta int
}
type SelectRepo ¶
type SelectRepo struct{}
type TabDirection ¶
type TabDirection int
const ( TabPrev TabDirection = -1 TabNext TabDirection = 1 )
type ToggleCmdPalette ¶
type ToggleCmdPalette struct{}
type ToggleKeymapOverlay ¶ added in v0.1.28
type ToggleKeymapOverlay struct{}
type TriggerRefresh ¶
type TriggerRefresh struct{}
Click to show internal directories.
Click to hide internal directories.