tui

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2025 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Launch

func Launch(cfg *config.Config, opts *TUIOptions) error

Launch launches the TUI with proper initialization

Types

type CommandItem

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

CommandItem represents a command record for the list component

func (CommandItem) Description

func (i CommandItem) Description() string

func (CommandItem) FilterValue

func (i CommandItem) FilterValue() string

func (CommandItem) Title

func (i CommandItem) Title() string

type StatsCommandItem

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

StatsCommandItem represents a command in the stats lists

func (StatsCommandItem) Description

func (i StatsCommandItem) Description() string

func (StatsCommandItem) FilterValue

func (i StatsCommandItem) FilterValue() string

func (StatsCommandItem) Title

func (i StatsCommandItem) Title() string

type TUIMode

type TUIMode int

TUI modes for different interaction states

const (
	ModeSearch TUIMode = iota
	ModeHelp
	ModeDetails
	ModeStats
	ModeDeleteConfirm
	ModeWipeConfirm
	ModeNoteEdit
	ModeTagEdit
	ModeTagSelect
	ModeTagColor
	ModeAutoTagRules
)

type TUIOptions

type TUIOptions struct {
	InitialQuery string
	FuzzyEnabled bool
	MaxResults   int
	Version      string
}

TUIOptions configures the TUI behavior

type TUISession

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

TUISession represents an active TUI session with all required services

Jump to

Keyboard shortcuts

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