Skip to content

feat(desktop): add progress bar cell prefix (p: 75, p: 3/10)#208

Closed
cemheren wants to merge 15 commits into
mainfrom
grow/progress-bar-prefix
Closed

feat(desktop): add progress bar cell prefix (p: 75, p: 3/10)#208
cemheren wants to merge 15 commits into
mainfrom
grow/progress-bar-prefix

Conversation

@cemheren
Copy link
Copy Markdown
Owner

Summary

Adds a new p: cell prefix that renders a visual progress bar using unicode block characters.

Formats supported:

  • p: 75[████████████████░░░░] 75%
  • p: 3/10 tasks[██████░░░░░░░░░░░░░░] 30% tasks
  • Any percentage 0–100 or fraction (numerator/denominator)
  • Optional trailing label text

Implementation:

  • CellPrefix.IsProgressBar() + RenderProgressBar() — pure parsing, no side effects
  • Linux X11 renderer: green-tinted bg/fg (15,35,15 / 80,220,80)
  • Windows WinForms renderer: same color scheme
  • Help overlay updated (Windows)
  • docs/tour.md and docs/keyboard-shortcuts.md updated

Design:

  • Purely additive — no existing behavior modified
  • Zero NuGet deps (as always)
  • Build verified green before and after

cemheren and others added 15 commits May 25, 2026 21:05
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
New 'p:' prefix renders a visual progress bar in cells:
- p: 75         → [████████████████░░░░] 75%
- p: 3/10 tasks → [██████░░░░░░░░░░░░░░] 30% tasks
- Supports percentages (0-100) and fractions (numerator/denominator)
- Green-tinted foreground for visual distinction
- Works on both Linux (X11) and Windows desktop modes
- Documented in docs/tour.md and docs/keyboard-shortcuts.md

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@cemheren cemheren closed this May 28, 2026
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