ui

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var (
	TaskListDefaultTitle = "omm"
)

Functions

func InitialModel

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

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
}

type HideHelpMsg

type HideHelpMsg struct{}

type ListDensityType added in v0.2.0

type ListDensityType uint8
const (
	Compact ListDensityType = iota
	Spacious
)

Jump to

Keyboard shortcuts

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