Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithCursor ¶
func WithCursor(row, col int) option
func WithWindowWidth ¶
func WithWindowWidth(width int) option
Types ¶
type State ¶
type State interface {
Mode() Mode
Tiers() []core.Tier
CursorRow() int
CursorCol() int
Dragging() bool
SetStatus(msg string)
StatusMsg() string
WindowWidth() int
WindowHeight() int
SetWindowSize(width int, height int)
InputTitle() string
Input() textinput.Model
UpdateInput(msg tea.Msg) tea.Cmd
StartInputMode(title string, callback func(string, State) tea.Cmd) tea.Cmd
ExitInputMode()
SubmitInput() tea.Cmd
DeleteItem() tea.Cmd
ClampCursor()
AddItem() tea.Cmd
AddItemToPool(item core.Item)
UpdateItem() tea.Cmd
UpdateCurrentItem(newItem core.Item)
SelectItem()
MoveItem()
MoveRight()
MoveUp()
MoveDown()
MoveLeft()
Save() core.SaveState
Load(data core.SaveState)
ToggleHelp()
}
Click to show internal directories.
Click to hide internal directories.