tui

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package tui implements the terminal user interface for the podcasts-sync application.

Index

Constants

View Source
const (
	Flamingo    = "#f2cdcd"
	Pink        = "#f5c2e7"
	Mauve       = "#cba6f7"
	MauveDarker = "#6b5885"
	Red         = "#f38ba8"
	Maroon      = "#eba0ac"
	Peach       = "#fab387"
	Yellow      = "#f9e2af"
	Green       = "#a6e3a1"
	Teal        = "#94e2d5"
	Sky         = "#89dceb"
	Sapphire    = "#74c7ec"
	Blue        = "#89b4fa"
	Lavender    = "#b4befe"
	Text        = "#cdd6f4"
	Subtext1    = "#bac2de"
	Subtext0    = "#a6adc8"
	Overlay2    = "#9399b2"
	Overlay1    = "#7f849c"
	Overlay0    = "#6c7086"
	Surface2    = "#585b70"
	Surface1    = "#45475a"
	Surface0    = "#313244"
	Base        = "#1e1e2e"
	Mantle      = "#181825"
	Crust       = "#11111b"
)

Catppuccin Mocha color palette

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfirmKeyMap

type ConfirmKeyMap struct {
	Yes key.Binding
	No  key.Binding
}

func (ConfirmKeyMap) FullHelp

func (k ConfirmKeyMap) FullHelp() [][]key.Binding

func (ConfirmKeyMap) ShortHelp

func (k ConfirmKeyMap) ShortHelp() []key.Binding

type DebugMsg

type DebugMsg internal.Debug

type DriveHelpKeyMap added in v0.1.0

type DriveHelpKeyMap struct{ KeyMap }

func (DriveHelpKeyMap) ShortHelp added in v0.1.0

func (k DriveHelpKeyMap) ShortHelp() []key.Binding

type DrivePodcastsMsg

type DrivePodcastsMsg struct {
	Podcasts      []internal.PodcastEpisode
	PodcastsDrive []internal.PodcastEpisode
}

type DriveUpdatedMsg

type DriveUpdatedMsg []internal.USBDrive

type DrivesPollMsg

type DrivesPollMsg struct{}

type ErrMsg

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

func (ErrMsg) Error

func (e ErrMsg) Error() string

type FileOpMsg

type FileOpMsg struct {
	Operation string // "sync" or "delete"
	Msg       internal.FileOp
}

type KeyMap

type KeyMap struct {
	Up          key.Binding
	Down        key.Binding
	Left        key.Binding
	Right       key.Binding
	Space       key.Binding
	Enter       key.Binding
	Escape      key.Binding
	Tab         key.Binding
	SelectDrive key.Binding
	Sync        key.Binding
	SyncAll     key.Binding
	Refresh     key.Binding
	Delete      key.Binding
	DeleteAll   key.Binding
	Debug       key.Binding
	Quit        key.Binding
	Progress    key.Binding
}

func (KeyMap) FullHelp

func (k KeyMap) FullHelp() [][]key.Binding

func (KeyMap) ShortHelp

func (k KeyMap) ShortHelp() []key.Binding

type Loading

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

type MacHelpKeyMap added in v0.1.0

type MacHelpKeyMap struct{ KeyMap }

func (MacHelpKeyMap) ShortHelp added in v0.1.0

func (k MacHelpKeyMap) ShortHelp() []key.Binding

type MacPodcastsMsg

type MacPodcastsMsg []internal.PodcastEpisode

type Model

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

func InitialModel

func InitialModel() 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

type ProgressTickMsg added in v0.3.0

type ProgressTickMsg struct{}

type StyleSet

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

StyleSet contains a matched set of title and description styles

type TransferKeyMap

type TransferKeyMap struct {
	Cancel key.Binding
}

func (TransferKeyMap) FullHelp

func (k TransferKeyMap) FullHelp() [][]key.Binding

func (TransferKeyMap) ShortHelp

func (k TransferKeyMap) ShortHelp() []key.Binding

Jump to

Keyboard shortcuts

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