Skip to content

fix: invert plain usage percentages#473

Open
ekkoitac wants to merge 1 commit into
sirmalloc:mainfrom
ekkoitac:fix/issue-391-usage-invert
Open

fix: invert plain usage percentages#473
ekkoitac wants to merge 1 commit into
sirmalloc:mainfrom
ekkoitac:fix/issue-391-usage-invert

Conversation

@ekkoitac

@ekkoitac ekkoitac commented Jun 20, 2026

Copy link
Copy Markdown

Fixes #391

Summary

This makes the percentage usage widgets treat used/remaining as a regular display option instead of only a progress-bar setting.

  • Add u for (u)sed/remaining on the percentage usage widgets.
  • Keep the existing v shortcut working.
  • Use the inverted value in plain text and preview mode for Session, Weekly, Weekly Opus, Weekly Sonnet, and Extra Usage Utilization.
  • Keep invert when cycling back to plain text mode, while still dropping cursor metadata since the cursor only applies to bars and sliders.

Validation

  • npm exec --yes bun@latest -- test src/widgets/__tests__/SessionUsage.test.ts src/widgets/__tests__/WeeklyUsage.test.ts src/widgets/__tests__/WeeklyOpusUsage.test.ts src/widgets/__tests__/WeeklySonnetUsage.test.ts src/widgets/__tests__/ExtraUsageUtilization.test.ts
  • npm exec --yes bun@latest -- test
  • npm exec --yes bun@latest -- run lint

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.

Session/Weekly usage widgets lack a (u)sed/remaining toggle, and existing (v)invert is silently dropped in plain mode

1 participant