ui

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MESSAGE_CHOICE = iota
	MESSAGE_SEND
	MESSAGE_SENT
)

Variables

View Source
var DefaultKeyMap = KeyMap{
	Up: key.NewBinding(
		key.WithKeys("up", "k"),
	),

	Down: key.NewBinding(
		key.WithKeys("down", "j"),
	),

	Enter: key.NewBinding(
		key.WithKeys("enter"),
	),
}

Functions

This section is empty.

Types

type KeyMap

type KeyMap struct {
	Up    key.Binding
	Down  key.Binding
	Enter key.Binding
}

type Model

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

func NewModel

func NewModel(c *config.Config, f []string) Model

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

Jump to

Keyboard shortcuts

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