keymap

package
v0.1.38 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

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 Quit

type Quit struct{}

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

func (*Registry) Dispatch

func (r *Registry) Dispatch(focus domain.FocusTarget, msg tea.KeyMsg) Result

Dispatch resolves a key press into an action or a pass-through signal.

type Result

type Result struct {
	Action      Action
	PassThrough bool
}

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.

func Dispatch

func Dispatch(focus domain.FocusTarget, msg tea.KeyMsg) Result

Dispatch resolves a key press into an action or a pass-through signal.

type ScrollPreview

type ScrollPreview struct {
	Delta int
}

type SelectPR

type SelectPR struct{}

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{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL