Skip to content

feat: the status line gets a colour per metric and an icon per equivalent - #5

Merged
cyphalle merged 1 commit into
mainfrom
feat/statusline-display
Oct 18, 2026
Merged

cyphalle merged 1 commit into
mainfrom
feat/statusline-display

Conversation

@cyphalle

Copy link
Copy Markdown
Contributor

Review the colour handling in statusline(). Display only: no value changes.

⚡ 1.5 kWh  💧 8.2 L  🏭 443 gCO₂e ≈ 🚗 1.8 km  🌱 0.09–0.14 PDF·m²·yr ≈ 📄 1.9 A4
  • One ANSI colour per metric, grey for the equivalents. NO_COLOR turns colours off.
  • Each reference area has an icon (📄 A4, 🅿️ parking, 🎾 tennis, ⚽ pitch, 🌳 ha), so the label stays short.
  • CO₂e at 100 g or more has no decimal.
  • The line drops from about 100 to 80 characters. Next to an existing status line it ran past the terminal width.

Tests: 11 green, clippy clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_01QUg7CcESDGqbwXB484UeRx

@cyphalle cyphalle self-assigned this Oct 18, 2026
@cyphalle
cyphalle requested a review from ilaborie October 18, 2026 16:19
@cyphalle
cyphalle merged commit b1a5f5d into main Oct 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant