feat: add settings toggle to show detailed remaining time#24
Open
carlosresu wants to merge 1 commit into
Open
Conversation
d49cf66 to
39a9166
Compare
9699b62 to
e1c91c3
Compare
This was referenced Jun 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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