utils

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ListStyles list.Styles
	LabelStyle = lipgloss.NewStyle().PaddingLeft(2).Foreground(lipgloss.Color("202"))
	TitleStyle = list.DefaultStyles().Title.Background(lipgloss.Color("22"))
)

Functions

func NewItemDelegate

func NewItemDelegate() list.ItemDelegate

func Ticker

func Ticker() tea.Cmd

Types

type Mod

type Mod struct {
	Name      string
	ID        string
	Reference string
}

type SimpleItem

type SimpleItem struct {
	ItemTitle string
	Activate  func(msg tea.Msg, currentModel tea.Model) (tea.Model, tea.Cmd)

	// I know this is ugly but generics are coming soon and I cba
	Extra interface{}
}

func (SimpleItem) Description

func (n SimpleItem) Description() string

func (SimpleItem) FilterValue

func (n SimpleItem) FilterValue() string

func (SimpleItem) GetTitle

func (n SimpleItem) GetTitle() string

func (SimpleItem) Title

func (n SimpleItem) Title() string

type TickMsg

type TickMsg struct{}

Jump to

Keyboard shortcuts

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