state

package
v1.34.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: Apache-2.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 FilterTarget

type FilterTarget int

FilterTarget describes which list the filter applies to.

const (
	FilterTargetWorktrees FilterTarget = iota
	FilterTargetStatus
	FilterTargetLog
)

Filter target options.

type PendingState

type PendingState struct {
	Commands         []string
	CommandEnv       map[string]string
	CommandCwd       string
	After            func() tea.Msg
	TrustPath        string
	CustomBranchName string
	CustomBaseRef    string
	CustomMenu       *config.CustomCreateMenu
}

PendingState keeps deferred command and UI input state.

type SearchTarget

type SearchTarget int

SearchTarget describes where search input is applied.

const (
	SearchTargetWorktrees SearchTarget = iota
	SearchTargetStatus
	SearchTargetLog
)

Search target options.

type ViewState

type ViewState struct {
	ShowingFilter bool
	FilterTarget  FilterTarget
	ShowingSearch bool
	SearchTarget  SearchTarget
	FocusedPane   int
	ZoomedPane    int
	WindowWidth   int
	WindowHeight  int
}

ViewState holds UI-related state for the model.

Jump to

Keyboard shortcuts

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