tui

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2026 License: MIT Imports: 13 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 {
	// contains filtered or unexported fields
}

func NewModel

func NewModel(cfg config.Config, repo *db.HistoryRepo, cwd string, homeDir string, height int, cwdMode bool, initialQuery string) Model

func (Model) Canceled

func (m Model) Canceled() bool

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Selected

func (m Model) Selected() string

func (Model) Update

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

func (Model) View

func (m Model) View() string

type Styles

type Styles struct {
	Prompt          lipgloss.Style
	Match           lipgloss.Style
	Selected        lipgloss.Style
	Normal          lipgloss.Style
	Mode            lipgloss.Style
	Cursor          lipgloss.Style
	HeaderBar       lipgloss.Style
	Header          lipgloss.Style
	Input           lipgloss.Style
	Footer          lipgloss.Style
	Border          lipgloss.Style
	Title           lipgloss.Style
	HelpKey         lipgloss.Style
	HelpDesc        lipgloss.Style
	SelectedItem    lipgloss.Style
	Dimmed          lipgloss.Style
	Meta            lipgloss.Style
	ExitOk          lipgloss.Style
	ExitFail        lipgloss.Style
	ColumnHeader    lipgloss.Style
	ColumnHeaderBar lipgloss.Style
	SelectionBar    lipgloss.Style
	SelectedCmd     lipgloss.Style
	Cmd             lipgloss.Style
}

func NewStyles

func NewStyles(theme config.ThemeConfig) Styles

Jump to

Keyboard shortcuts

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