ui

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewList added in v0.6.0

func NewList(e *inc.Engine) list.Model

NewList creates a new list model for showing candidates.

Types

type Model added in v0.5.0

type Model struct {
	Selected inc.Candidate
	Canceled bool
	// contains filtered or unexported fields
}

func NewModel added in v0.5.0

func NewModel(e *inc.Engine) Model

func RunSelector

func RunSelector(e *inc.Engine) (Model, error)

RunSelector runs the default selector UI.

func (Model) Init added in v0.5.0

func (m Model) Init() tea.Cmd

func (Model) Update added in v0.5.0

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

func (Model) View added in v0.5.0

func (m Model) View() string

Jump to

Keyboard shortcuts

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