state

package
v1.41.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 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
	FilterTargetGitStatus
	FilterTargetLog
)

Filter target options.

type LayoutMode added in v1.35.0

type LayoutMode int

LayoutMode describes the pane arrangement.

const (
	LayoutDefault LayoutMode = iota
	LayoutTop
)

Layout mode 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
	SearchTargetGitStatus
	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
	Layout          LayoutMode
	TerminalFocused bool
	ResizeOffset    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