option

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	SectionWidth  int
	SettingWidth  int
	HelpWidth     int
	ThemeWidth    int
	SectionHeight int
	SettingHeight int
	HelpHeight    int
	ThemeHeight   int

	Panel Panel
	// contains filtered or unexported fields
}

func New

func New(state *commit.State) Model

func ToModel

func ToModel(m tea.Model, c tea.Cmd) (Model, tea.Cmd)

func (*Model) ActivePane

func (m *Model) ActivePane() setting.Paner

func (*Model) AddPaneSet

func (m *Model) AddPaneSet(name string, ps []setting.Paner)

func (*Model) Blur

func (m *Model) Blur()

func (*Model) Category

func (m *Model) Category() string

func (*Model) Focus

func (m *Model) Focus()

func (Model) GetPaneSets

func (m Model) GetPaneSets() map[string][]setting.Paner

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) SectionIndex

func (m *Model) SectionIndex(c int, s int)

func (*Model) SelectPane

func (m *Model) SelectPane(title string)

func (*Model) SetHelp

func (m *Model) SetHelp(content string)

func (*Model) SetSettings

func (m *Model) SetSettings(set []section.Setting)

func (*Model) Setting

func (m *Model) Setting() string

func (Model) Update

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

func (Model) View

func (m Model) View() string

type Panel

type Panel int
const (
	PanelSection Panel = iota
	PanelSetting
	PanelHelp
	PanelTheme
)

type Styles

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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