undo

package
v1.19.2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*UndoModel)

Option configures an UndoModel during construction.

func WithTheme

func WithTheme(th theme.Theme) Option

WithTheme overrides the default theme for the undo TUI.

type UndoCompleteMsg

type UndoCompleteMsg struct {
	// contains filtered or unexported fields
}

UndoCompleteMsg is emitted when undo operation completes.

func (UndoCompleteMsg) ErrorCount

func (u UndoCompleteMsg) ErrorCount() int

func (UndoCompleteMsg) SuccessCount

func (u UndoCompleteMsg) SuccessCount() int

type UndoModel

type UndoModel struct {
	*treeview.TuiTreeModel[log.SessionSummary]
	// contains filtered or unexported fields
}

UndoModel represents the TUI for selecting and undoing operations

func NewUndoModel

func NewUndoModel(tree *treeview.Tree[log.SessionSummary], opts ...Option) *UndoModel

NewUndoModel creates a new undo selection model

func (*UndoModel) Init

func (m *UndoModel) Init() tea.Cmd

func (*UndoModel) Update

func (m *UndoModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*UndoModel) View

func (m *UndoModel) View() tea.View

Jump to

Keyboard shortcuts

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