ui

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CompactDensityVal  = "compact"
	SpaciousDensityVal = "spacious"
)
View Source
const (
	TaskListColor   = "#fe8019"
	ArchivedTLColor = "#fabd2f"
)

Variables

View Source
var (
	TaskListDefaultTitle = "omm"
)

Functions

func RenderUI

func RenderUI(db *sql.DB, config Config)

Types

type Config

type Config struct {
	ListDensity           ListDensityType
	TaskListColor         string
	ArchivedTaskListColor string
	ContextPaneColor      string
	TaskListTitle         string
	TextEditorCmd         []string
	Guide                 bool
	DBPath                string
	ShowContext           bool
	ConfirmBeforeDeletion bool
	CircularNav           bool
}

type HideHelpMsg

type HideHelpMsg struct{}

type ListDensityType added in v0.2.0

type ListDensityType uint8
const (
	Compact ListDensityType = iota
	Spacious
)

type Model added in v0.5.1

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

func InitialModel

func InitialModel(db *sql.DB, config Config) Model

func (Model) Init added in v0.5.1

func (m Model) Init() tea.Cmd

func (Model) Update added in v0.5.1

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View added in v0.5.1

func (m Model) View() string

Jump to

Keyboard shortcuts

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