Skip to content

Releases: dotcommander/statusline

v0.5.0

16 Apr 19:48

Choose a tag to compare

v0.4.0

16 Apr 18:22

Choose a tag to compare

Full Changelog: v0.3.0...v0.4.0

v0.3.0

15 Apr 14:16

Choose a tag to compare

Full Changelog: v0.2.3...v0.3.0

v0.2.1

03 Apr 23:30

Choose a tag to compare

Documentation and UX improvements

README

  • Full rewrite covering all v0.2.0 features
  • Token reference table with descriptions and default colors
  • Config YAML docs: layout, prompts, context, per-token overrides
  • Style syntax reference table (bold, italic, hex colors, combined)
  • Layout examples: minimal, prompt-heavy, context-focused, model+dir on line 1
  • slconfig section and environment variable reference

slconfig

  • Layout tab now shows an inline available-tokens hint (available: [dir] [git] [project] ...) derived from knownTokens so it stays in sync automatically

v0.2.0

03 Apr 23:19

Choose a tag to compare

What's new in v0.2.0

Features

  • Per-token style overrides — any token (dir, git, model, etc.) now accepts a style key in the tokens: config section supporting bold, italic, underline, dim, strikethrough, and #RRGGBB hex colors
  • Branch max_lengthtokens.git.max_length truncates long branch names with ..., keeping the status line compact
  • Prompt cachingprompts.cache_ttl adds a file-based TTL cache at /tmp/statusline-prompts-{hash}.json, reducing transcript parse overhead on every shell prompt
  • TUI configurator (cmd/slconfig) — interactive bubbletea editor with 5 tabs (Layout, Appearance, Prompts, Context, Tokens), live statusline preview, and save/reset/quit

Improvements

  • Config types extracted into config.go; DC plugin detection extracted into dc.go
  • contextHealth now uses config-driven thresholds instead of hardcoded constants
  • filepath.Base used for directory name derivation
  • Tests added for progressive prompt collapse and plainLen

Dependencies

Added: charmbracelet/bubbletea, charmbracelet/bubbles, charmbracelet/lipgloss

v0.1.2

03 Apr 00:44

Choose a tag to compare

Bug Fixes

  • Line 2 disappearing when line 1 is too long — root cause was ioctl failing silently on piped stdout, causing getTerminalWidth to return 120 (too wide). The function now probes stdout, then stderr, then /dev/tty before falling back to a conservative default of 80.
  • Added truncateVisible() as a safety net that hard-truncates any rendered line exceeding termWidth, preserving ANSI escape sequences correctly.
  • Fixed collapseBreadcrumbs total-width calculation to skip separator width for noSep slots, preventing off-by-one overflow.