Releases: dotcommander/statusline
Releases · dotcommander/statusline
v0.5.0
Full Changelog: v0.4.0...v0.5.0
v0.4.0
Full Changelog: v0.3.0...v0.4.0
v0.3.0
Full Changelog: v0.2.3...v0.3.0
v0.2.1
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 fromknownTokensso it stays in sync automatically
v0.2.0
What's new in v0.2.0
Features
- Per-token style overrides — any token (
dir,git,model, etc.) now accepts astylekey in thetokens:config section supportingbold,italic,underline,dim,strikethrough, and#RRGGBBhex colors - Branch max_length —
tokens.git.max_lengthtruncates long branch names with..., keeping the status line compact - Prompt caching —
prompts.cache_ttladds 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 intodc.go contextHealthnow uses config-driven thresholds instead of hardcoded constantsfilepath.Baseused for directory name derivation- Tests added for progressive prompt collapse and
plainLen
Dependencies
Added: charmbracelet/bubbletea, charmbracelet/bubbles, charmbracelet/lipgloss
v0.1.2
Bug Fixes
- Line 2 disappearing when line 1 is too long — root cause was
ioctlfailing silently on piped stdout, causinggetTerminalWidthto return 120 (too wide). The function now probes stdout, then stderr, then/dev/ttybefore falling back to a conservative default of 80. - Added
truncateVisible()as a safety net that hard-truncates any rendered line exceedingtermWidth, preserving ANSI escape sequences correctly. - Fixed
collapseBreadcrumbstotal-width calculation to skip separator width fornoSepslots, preventing off-by-one overflow.