basiclist

package
v1.0.16 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultFocusedStyle = lipgloss.NewStyle().
	Border(lipgloss.ThickBorder()).
	BorderForeground(lipgloss.Color("197")).
	BorderTop(false).BorderBottom(false).BorderRight(false).
	PaddingLeft(1).
	Foreground(lipgloss.Color("#EE6FF8"))
View Source
var DefaultUnfocusedStyle = lipgloss.NewStyle().
	Border(lipgloss.HiddenBorder()).
	BorderTop(false).BorderBottom(false).BorderRight(false).
	Foreground(lipgloss.Color("#C2B8C2"))

Functions

This section is empty.

Types

type BasicList

type BasicList struct {
	Items   []fmt.Stringer
	Focused int

	UnfocusedStyle lipgloss.Style
	FocusedStyle   lipgloss.Style
	// contains filtered or unexported fields
}

func NewBasicList

func NewBasicList() BasicList

func (BasicList) Init

func (l BasicList) Init() tea.Cmd

func (*BasicList) SetItems

func (l *BasicList) SetItems(items []fmt.Stringer)

func (BasicList) Update

func (l BasicList) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (BasicList) View

func (l BasicList) View() string

type KeyMap

type KeyMap struct {
	Down key.Binding
	Up   key.Binding

	GotoBottom key.Binding
	GotoTop    key.Binding

	Quit key.Binding

	ShowFullHelp  key.Binding
	CloseFullHelp key.Binding
}

func DefaultKeyMap

func DefaultKeyMap() KeyMap

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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