Versions in this module Expand all Collapse all v0 v0.13.0 Oct 6, 2026 Changes in this version + func AdjustArea(area image.Rectangle, style lipgloss.Style) image.Rectangle + func Capitalize(text string) string + func Highlight(content string, area image.Rectangle, startLine, startCol, endLine, endCol int, ...) string + func HighlightBuffer(content string, area image.Rectangle, startLine, startCol, endLine, endCol int, ...) *uv.ScreenBuffer + func HighlightContent(content string, area image.Rectangle, startLine, startCol, endLine, endCol int) string + func IsValidBase64(s string) bool + func NormalizeSpace(content string) string + func ToStyle(lgStyle lipgloss.Style) uv.Style + type FilterableItem interface + Filter func() string + type FilterableItemsSource []FilterableItem + func (f FilterableItemsSource) Len() int + func (f FilterableItemsSource) String(i int) string + type FilterableList struct + func NewFilterableList(items ...FilterableItem) *FilterableList + func (f *FilterableList) AppendItems(items ...FilterableItem) + func (f *FilterableList) FilteredItems() []Item + func (f *FilterableList) PrependItems(items ...FilterableItem) + func (f *FilterableList) Render() string + func (f *FilterableList) SetFilter(q string) + func (f *FilterableList) SetItems(items ...FilterableItem) + type Focusable interface + SetFocused func(focused bool) + type Highlightable interface + Highlight func() (startLine, startCol, endLine, endCol int) + SetHighlight func(startLine, startCol, endLine, endCol int) + type Highlighter func(x, y int, c *uv.Cell) *uv.Cell + var DefaultHighlighter Highlighter = func(x, y int, c *uv.Cell) *uv.Cell { ... } + func ToHighlighter(lgStyle lipgloss.Style) Highlighter + type Item interface + Finished func() bool + Render func(width int) string + Version func() uint64 + type List struct + func NewList(items ...Item) *List + func (l *List) AppendItems(items ...Item) + func (l *List) AtBottom() bool + func (l *List) BeginSelectionDrag(startIdx, endIdx int) + func (l *List) Blur() + func (l *List) EndSelectionDrag() + func (l *List) Focus() + func (l *List) Focused() bool + func (l *List) Gap() int + func (l *List) Height() int + func (l *List) Invalidate(item Item) + func (l *List) InvalidateFrozen(item Item) + func (l *List) IsSelectedFirst() bool + func (l *List) IsSelectedLast() bool + func (l *List) ItemAt(index int) Item + func (l *List) ItemIndexAtPosition(x, y int) (itemIdx int, itemY int) + func (l *List) Len() int + func (l *List) Offset() int + func (l *List) Overflows(height int) bool + func (l *List) PrependItems(items ...Item) + func (l *List) Prewarm(from, batch int) int + func (l *List) RegisterRenderCallback(cb RenderCallback) + func (l *List) RemoveItem(idx int) + func (l *List) Render() string + func (l *List) ScrollBy(lines int) + func (l *List) ScrollToBottom() + func (l *List) ScrollToIndex(index int) + func (l *List) ScrollToSelected() + func (l *List) ScrollToTop() + func (l *List) SelectFirst() bool + func (l *List) SelectFirstInView() + func (l *List) SelectLast() bool + func (l *List) SelectLastInView() + func (l *List) SelectNext() bool + func (l *List) SelectPrev() bool + func (l *List) Selected() int + func (l *List) SelectedItem() Item + func (l *List) SelectedItemInView() bool + func (l *List) SetGap(gap int) + func (l *List) SetItems(items ...Item) + func (l *List) SetReverse(reverse bool) + func (l *List) SetSelected(index int) + func (l *List) SetSize(width, height int) + func (l *List) TotalHeight() int + func (l *List) VisibleItemIndices() (startIdx, endIdx int) + func (l *List) Width() int + func (l *List) WrapToEnd() bool + func (l *List) WrapToStart() bool + type MatchSettable interface + SetMatch func(fuzzy.Match) + type MouseClickable interface + HandleMouseClick func(btn ansi.MouseButton, x, y int) bool + type RawRenderable interface + RawRender func(width int) string + type RenderCallback func(idx, selectedIdx int, item Item) Item + func FocusedRenderCallback(list *List) RenderCallback + type SpacerItem struct + Height int + func NewSpacerItem(height int) *SpacerItem + func (s *SpacerItem) Finished() bool + func (s *SpacerItem) Render(width int) string + type Versioned struct + func NewVersioned() *Versioned + func (vc *Versioned) Bump() + func (vc *Versioned) Version() uint64