Skip to content

feat: toggle panels with number keys (1-5)#24

Closed
tbouquet wants to merge 1 commit intograykode:mainfrom
tbouquet:feat/panel-toggle
Closed

feat: toggle panels with number keys (1-5)#24
tbouquet wants to merge 1 commit intograykode:mainfrom
tbouquet:feat/panel-toggle

Conversation

@tbouquet
Copy link
Copy Markdown
Contributor

@tbouquet tbouquet commented Apr 3, 2026

Summary

  • Press 1-5 to show/hide individual panels, matching btop's panel toggle UX
  • Panel mapping: 1=context, 2=quota, 3=tokens, 4=ports, 5=sessions
  • Hidden panels redistribute space to visible ones automatically
  • Mid row (quota/tokens/projects/ports) auto-hides when all its panels are toggled off
  • Footer shows 1-5 panels keybind hint

Depends on #21 (theme support) for the split UI modules.

Test plan

  • cargo test — 25/25 pass
  • cargo check — clean
  • Toggle each panel individually in --demo mode
  • Toggle all mid panels off — sessions expand to fill
  • Toggle sessions off — context/mid expand

Press 1-5 to show/hide individual panels, matching btop's
panel toggle behavior:

  1 — context (sparkline + context bars)
  2 — quota (rate limits)
  3 — tokens (breakdown for selected session)
  4 — ports (open ports + orphans)
  5 — sessions (main table + detail view)

Hidden panels redistribute space to visible ones. The mid row
(quota/tokens/projects/ports) auto-hides when all its panels
are toggled off, and projects stays visible as long as the
mid row is shown.
@tbouquet tbouquet closed this Apr 3, 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