presentation

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: Unlicense Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintItem added in v0.2.0

func PrintItem(a types.Actionable)

Types

type CommandItem added in v0.2.0

type CommandItem struct {
	types.Actionable
}

func (CommandItem) String added in v0.2.0

func (c CommandItem) String() string

type ListModel

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

func NewListModel added in v0.2.0

func NewListModel(style lipgloss.Style) ListModel

func (ListModel) Init

func (m ListModel) Init() tea.Cmd

func (ListModel) Items

func (m ListModel) Items() []UIItem

func (ListModel) Selected added in v0.2.1

func (m ListModel) Selected() types.Actionable

func (ListModel) Update

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

func (ListModel) View

func (m ListModel) View() string

type RealtimeSync

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

func NewRealtimeSync

func NewRealtimeSync(p *tea.Program, repo data.Repository, ctx context.Context, ticker *time.Ticker) RealtimeSync

func (*RealtimeSync) KeepSynched

func (r *RealtimeSync) KeepSynched()

type SelectableListModel added in v0.2.1

type SelectableListModel interface {
	tea.Model
	Selected() types.Actionable
}

type TabbedListModel added in v0.2.0

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

func NewTabbedListModel added in v0.2.0

func NewTabbedListModel(path string, list SelectableListModel, do doer, undo undoer, del deleter) TabbedListModel

func (TabbedListModel) Init added in v0.2.0

func (m TabbedListModel) Init() tea.Cmd

Init is the first function that will be called. It returns an optional initial command. To not perform an initial command return nil.

func (TabbedListModel) Update added in v0.2.0

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

Update is called when a message is received. Use it to inspect messages and, in response, update the model and/or send a command.

func (TabbedListModel) View added in v0.2.0

func (m TabbedListModel) View() string

View renders the program's UI, which is just a string. The view is rendered after every Update.

type UIItem added in v0.2.0

type UIItem struct {
	types.Actionable
}

func (UIItem) Description added in v0.2.0

func (i UIItem) Description() string

func (UIItem) FilterValue added in v0.2.0

func (i UIItem) FilterValue() string

func (UIItem) Title added in v0.2.0

func (i UIItem) Title() string

Jump to

Keyboard shortcuts

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