feat: add settings toggle to show detailed remaining time - #24
Conversation
d49cf66 to
39a9166
Compare
9699b62 to
e1c91c3
Compare
|
Hey @carlosresu, v2 is officially out! 🎉 The detailed reset-time experience you proposed here is now supported through v2’s Theme Studio. It takes your original toggle idea further by letting each theme control exactly how reset times are displayed for Claude Code, Codex, and Antigravity. The detailed duration format produces the specific results you were after, such as To set it up:
Since v2 now covers the core capability behind this PR in a more flexible form, I’m closing it as superseded. Thank you again, @carlosresu! Your concrete examples and careful attention to Claude, Codex, Antigravity, localization, persistence, and longer text made the use case exceptionally clear. 🚀 |
Summary
Adds an opt-in Show detailed remaining time toggle under the right-click Settings menu. Rebased on v1.4.8 and extended to the Antigravity model. When enabled:
4h 12minstead of4h)3d 5hinstead of3d)Default is off, so existing installs see today's behavior. The preference persists in
settings.jsonasshow_detailed_remainingwith#[serde(default)]for clean migration.Dynamic column width
The usage-cell text column measures the actual rendered text and sizes to it, so the wider detailed strings (e.g.
100% · 23h 59m) fit without clipping and without reserving a fixed worst-case when the toggle is off. The widget grows only when content needs it.Screenshots
Same usage/reset data, toggled via right-click → Settings → Show detailed remaining time.
Sub-hour behavior unchanged
The toggle only adds a sub-unit when the top unit is
hord; minute/second displays render identically in both modes, andnowis unchanged.Localization
Show detailed remaining timeis translated across all 10 supported locales.Independence & compatibility
Branches directly off v1.4.8
main(single commit) and contains only this feature — merge it alone, or alongside the pace-indicator (#25) and ETD (#38) PRs in any order: every combination merges with 0 conflicts (verified viagit merge-tree+ a triple-merge that builds and passes tests).Test plan
cargo build+cargo testclean on v1.4.84h,3d)4h 23m,2d 1h) across Claude/Codex/Antigravity; column tracks content with no clipping