ui

package
v0.0.0-...-a2bdb74 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BannerStyle           = lipgloss.NewStyle().Foreground(lipgloss.Color("93"))
	MarginStyle           = lipgloss.NewStyle()
	TitleStyle            = lipgloss.NewStyle().MarginLeft(2)
	ItemStyle             = lipgloss.NewStyle().PaddingLeft(4)
	SelectedItemStyle     = lipgloss.NewStyle().PaddingLeft(2).Foreground(lipgloss.Color("170"))
	PaginationStyle       = list.DefaultStyles().PaginationStyle.PaddingLeft(4)
	HelpStyle             = list.DefaultStyles().HelpStyle.MarginLeft(0).MarginTop(2).PaddingLeft(4).PaddingBottom(1).Foreground(lipgloss.Color("240"))
	CategoryStyle         = lipgloss.NewStyle().PaddingLeft(7).Foreground(lipgloss.Color("247"))
	SelectedCategoryStyle = lipgloss.NewStyle().PaddingLeft(7).Foreground(lipgloss.Color("250"))
)

Functions

func NewDelegateKeyMap

func NewDelegateKeyMap() *delegateKeyMap

Types

type IdeaDelegate

type IdeaDelegate struct{}

func (IdeaDelegate) Height

func (d IdeaDelegate) Height() int

func (IdeaDelegate) Render

func (d IdeaDelegate) Render(w io.Writer, m list.Model, index int, listItem list.Item)

func (IdeaDelegate) Spacing

func (d IdeaDelegate) Spacing() int

func (IdeaDelegate) Update

func (d IdeaDelegate) Update(_ tea.Msg, _ *list.Model) tea.Cmd

type Model

type Model struct {
	List       list.Model
	BackupList list.Model

	Window Window
	// contains filtered or unexported fields
}

func (*Model) Init

func (m *Model) Init() tea.Cmd

func (*Model) Update

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

func (*Model) View

func (m *Model) View() string

type Window

type Window int
const (
	List Window = iota
	File
	Todo
)

func (Window) String

func (s Window) String() string

Jump to

Keyboard shortcuts

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