statusline

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package statusline owns the closed inventory and ordering contract for TUI status-line fields.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Description

func Description(item Item) (string, error)

Description returns concise picker guidance for a known item.

func Validate

func Validate(items []Item) error

Validate rejects unknown or duplicate fields while allowing an empty line.

Types

type Item

type Item string

Item identifies one independently configurable status-line field.

const (
	Workspace    Item = "workspace"
	Session      Item = "session"
	Model        Item = "model"
	ContextUsed  Item = "context_used"
	TaskProgress Item = "task_progress"
	Phase        Item = "phase"
	Mode         Item = "mode"
	Team         Item = "team"
)

func Default

func Default() []Item

Default returns the initial enabled order.

func Inventory

func Inventory() []Item

Inventory returns the complete stable picker order.

func OrderedInventory

func OrderedInventory(enabled []Item) ([]Item, error)

OrderedInventory returns all items with enabled items first in their saved order, followed by disabled items in stable inventory order.

Jump to

Keyboard shortcuts

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