tui

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: MIT Imports: 12 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

tui/app.go

tui/board.go

tui/preview.go

Index

Constants

This section is empty.

Variables

View Source
var (
	// Column header
	HeaderStyle = lipgloss.NewStyle().
				Bold(true).
				Padding(0, 1).
				MarginBottom(1).
				Foreground(lipgloss.Color("#000000")).
				Background(lipgloss.Color("#888888")).
				Align(lipgloss.Center)

	// Active column header
	ActiveHeaderStyle = lipgloss.NewStyle().
						Bold(true).
						Padding(0, 1).
						MarginBottom(1).
						Foreground(lipgloss.Color("#000000")).
						Background(lipgloss.Color("#61AFEF")).
						Align(lipgloss.Center)

	// Card box (normal)
	CardStyle = lipgloss.NewStyle().
				Border(lipgloss.RoundedBorder()).
				BorderForeground(lipgloss.Color("240")).
				Padding(0, 1).
				MarginBottom(0)

	// Card box (selected)
	SelectedCardStyle = lipgloss.NewStyle().
						Border(lipgloss.RoundedBorder()).
						BorderForeground(lipgloss.Color("33")).
						Padding(0, 1).
						MarginBottom(0)

	// Card ID label
	CardIDStyle = lipgloss.NewStyle().
				Foreground(lipgloss.Color("33")).
				Bold(true)

	// Card title
	CardTitleStyle = lipgloss.NewStyle().
					Foreground(lipgloss.Color("15"))

	// Priority badge
	PriorityHighStyle = lipgloss.NewStyle().
						Foreground(lipgloss.Color("1")).
						Bold(true)

	PriorityMediumStyle = lipgloss.NewStyle().
						Foreground(lipgloss.Color("3"))

	PriorityLowStyle = lipgloss.NewStyle().
						Foreground(lipgloss.Color("8"))

	// Type badge
	TypeStyle = lipgloss.NewStyle().
				Foreground(lipgloss.Color("5"))

	// Status badge
	StatusStyle = lipgloss.NewStyle().
				Foreground(lipgloss.Color("2"))

	// Card cursor indicator
	CursorStyle = lipgloss.NewStyle().
				Foreground(lipgloss.Color("33")).
				Bold(true)

	// Column border
	ColumnStyle = lipgloss.NewStyle().
				Border(lipgloss.RoundedBorder()).
				BorderForeground(lipgloss.Color("240")).
				Padding(0, 0)

	// Active column border
	ActiveColumnStyle = lipgloss.NewStyle().
						Border(lipgloss.RoundedBorder()).
						BorderForeground(lipgloss.Color("33")).
						Padding(0, 0)

	// Preview panel
	PreviewStyle = lipgloss.NewStyle().
					Border(lipgloss.RoundedBorder()).
					BorderForeground(lipgloss.Color("240")).
					Padding(0, 1)

	// Help bar
	HelpStyle = lipgloss.NewStyle().
				Foreground(lipgloss.Color("241"))

	// Search input
	SearchStyle = lipgloss.NewStyle().
				Foreground(lipgloss.Color("33"))
)

Functions

This section is empty.

Types

type App

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

func NewApp

func NewApp(cfg *config.Config, showAll bool) App

func (App) Init

func (a App) Init() tea.Cmd

func (App) Update

func (a App) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (App) View

func (a App) View() string

type BoardView

type BoardView struct {
	Board     model.Board
	ColCursor int // active column index
	RowCursor int // active card index within column

	Width  int
	Height int
	// contains filtered or unexported fields
}

func NewBoardView

func NewBoardView(board model.Board, width, height int) BoardView

func (*BoardView) ActiveCard

func (b *BoardView) ActiveCard() *model.Card

func (*BoardView) ColWidth

func (b *BoardView) ColWidth() int

func (*BoardView) MoveDown

func (b *BoardView) MoveDown()

func (*BoardView) MoveLeft

func (b *BoardView) MoveLeft()

func (*BoardView) MoveRight

func (b *BoardView) MoveRight()

func (*BoardView) MoveTo

func (b *BoardView) MoveTo(col, row int) bool

func (*BoardView) MoveUp

func (b *BoardView) MoveUp()

func (*BoardView) Render

func (b *BoardView) Render() string

type PreviewPanel

type PreviewPanel struct {
	Content string
	Width   int
	Height  int
	Visible bool
	// contains filtered or unexported fields
}

func NewPreviewPanel

func NewPreviewPanel(width, height int) PreviewPanel

func (*PreviewPanel) LoadCard added in v0.1.4

func (p *PreviewPanel) LoadCard(card *model.Card)

func (*PreviewPanel) Render

func (p *PreviewPanel) Render() string

func (*PreviewPanel) ScrollDown

func (p *PreviewPanel) ScrollDown()

func (*PreviewPanel) ScrollUp

func (p *PreviewPanel) ScrollUp()

func (*PreviewPanel) Toggle

func (p *PreviewPanel) Toggle()

Jump to

Keyboard shortcuts

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