Skip to content

feat: add time cursor to usage progress bars#254

Open
fpbouchard wants to merge 1 commit intosirmalloc:mainfrom
fpbouchard:feature/time-cursor
Open

feat: add time cursor to usage progress bars#254
fpbouchard wants to merge 1 commit intosirmalloc:mainfrom
fpbouchard:feature/time-cursor

Conversation

@fpbouchard
Copy link
Copy Markdown

@fpbouchard fpbouchard commented Mar 21, 2026

Summary

Adds an optional time cursor to usage progress bars (session and weekly) that marks the elapsed time position within the current usage window, giving users a sense of how much time has passed relative to their usage.

Changes

  • Extract makeTimerProgressBar into src/widgets/shared/progress-bar.ts, replacing the simpler makeUsageProgressBar with support for an optional cursor marker
  • Add isUsageCursorEnabled / toggleUsageCursor helpers and a t keybind to toggle the cursor in progress display mode
  • Update session and weekly usage widgets to use the new progress bar and resolve elapsed time position from the usage window
  • Add tests for makeTimerProgressBar and update existing widget tests to reflect the new rendering
CleanShot 2026-03-27 at 10 24 08

The old progress bar showed only how much of the usage limit had been
consumed. The new makeTimerProgressBar adds an optional cursor marker
that shows the elapsed time position within the current usage window.
Users can toggle the cursor on and off with the t keybind when in
progress display mode.
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