Documentation
¶
Overview ¶
Package render draws the task roster sidebar: Frame is a pure function from config, state and pane list to the exact pane-sized text, and Model is the bubbletea program that keeps it fresh in the pane.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Frame ¶
Frame renders one complete pane-sized frame: exactly Height lines, each exactly Width visible columns, so a repaint never leaves stale text.
func FrameWithMap ¶
FrameWithMap renders the frame and reports which task row owns each line. A line with no row, such as a blank separator or trailing padding, maps to "". The renderer keeps that map so a mouse click can be turned into a row.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func (*Model) SelectedID ¶
SelectedID is the task id under the cursor.
type Options ¶
type Options struct {
Config *config.Config
State *model.State
Panes []tmux.Pane
Width int
Height int
Selected string // task id
Filter string // case-insensitive substring over id, title, group
Layout string // "" falls back to Config.Sidebar.Layout
SpinnerFrame int
}
Options is everything a frame needs. It is a value, not a pointer, so a caller can snapshot it per tick.