tui

package
v0.0.0-...-7ceabed Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStateIndicator

func GetStateIndicator(state string) string

GetStateIndicator returns the indicator for a story state

func GetTypeSymbol

func GetTypeSymbol(storyType string) string

GetTypeSymbol returns the symbol for a story type

Types

type DetailView

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

DetailView shows the details of a single story

func NewDetailView

func NewDetailView(story *domain.Story) *DetailView

NewDetailView creates a new detail view

func (*DetailView) View

func (view *DetailView) View(width, height int) string

View renders the detail view

type FormView

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

FormView handles story creation and editing

func NewFormView

func NewFormView(story *domain.Story, store *storage.JSONLStorage) *FormView

NewFormView creates a new form view

func (*FormView) Update

func (form *FormView) Update(msg tea.Msg) (*FormView, tea.Cmd)

Update handles messages for the form

func (*FormView) View

func (form *FormView) View() string

View renders the form

type KeyMap

type KeyMap struct {
	Accept   key.Binding
	Down     key.Binding
	Edit     key.Binding
	Enter    key.Binding
	Escape   key.Binding
	Finish   key.Binding
	Help     key.Binding
	Left     key.Binding
	Move     key.Binding
	MoveDown key.Binding
	MoveUp   key.Binding
	New      key.Binding
	Quit     key.Binding
	Reject   key.Binding
	Right    key.Binding
	Start    key.Binding
	Up       key.Binding
}

KeyMap defines the key bindings

type Model

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

Model is the main TUI model

func NewModel

func NewModel() (*Model, error)

NewModel creates a new TUI model

func (*Model) Init

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

Init initializes the model

func (*Model) Update

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

Update handles messages

func (*Model) View

func (model *Model) View() string

View renders the model

Jump to

Keyboard shortcuts

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