ui

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfirmAliasComponent

type ConfirmAliasComponent struct {
	// contains filtered or unexported fields
}

func (*ConfirmAliasComponent) Init

func (c *ConfirmAliasComponent) Init() tea.Cmd

func (*ConfirmAliasComponent) Update

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

func (*ConfirmAliasComponent) View

func (c *ConfirmAliasComponent) View() string

type HistoryItem

type HistoryItem struct {
	Command string
}

func NewHistoryItem

func NewHistoryItem(historyEntry string) *HistoryItem

func (HistoryItem) FilterValue

func (h HistoryItem) FilterValue() string

type HistoryItemDelegate

type HistoryItemDelegate struct{}

func (HistoryItemDelegate) Height

func (h HistoryItemDelegate) Height() int

func (HistoryItemDelegate) Render

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

func (HistoryItemDelegate) Spacing

func (h HistoryItemDelegate) Spacing() int

func (HistoryItemDelegate) Update

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

type HistoryItemListComponent

type HistoryItemListComponent struct {
	// contains filtered or unexported fields
}

func NewHistoryItemListComponent

func NewHistoryItemListComponent(items []list.Item) *HistoryItemListComponent

func (HistoryItemListComponent) Init

func (h HistoryItemListComponent) Init() tea.Cmd

func (HistoryItemListComponent) Update

func (h HistoryItemListComponent) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (HistoryItemListComponent) View

type SelectionManager added in v0.4.0

type SelectionManager struct {
	// contains filtered or unexported fields
}

func (*SelectionManager) Add added in v0.4.0

func (r *SelectionManager) Add(item *HistoryItem)

func (*SelectionManager) Contains added in v0.4.0

func (r *SelectionManager) Contains(item *HistoryItem) bool

func (*SelectionManager) IndexOf added in v0.4.0

func (r *SelectionManager) IndexOf(item *HistoryItem) int

func (*SelectionManager) Remove added in v0.4.0

func (r *SelectionManager) Remove(item *HistoryItem)

Jump to

Keyboard shortcuts

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