Skip to content

fix(revdiff-planning): use percentage pane size for zellij plan review - #245

Merged
umputun merged 1 commit into
umputun:masterfrom
max-two:fix/zellij-plan-review-pane-size
Jun 30, 2026
Merged

umputun merged 1 commit into
umputun:masterfrom
max-two:fix/zellij-plan-review-pane-size

Conversation

@max-two

@max-two max-two commented Jun 30, 2026

Copy link
Copy Markdown

Hi, I did read the contributing guide, but given this is a tiny mechanical bugfix I didn't think it fell in line with the spirit of the open an issue first rule. If that's a bad assumption on my part let me know, I'm happy to create an issue and link this PR to it.

What is the problem?

When revdiff-planning opens a plan for review inside Zellij, the floating pane is a tall, skinny column instead of the intended ~90% overlay.

Root cause: in plugins/revdiff-planning/scripts/launch-plan-review.sh, the zellij branch passes --width 90 --height 90 to zellij run. Per zellij run --help, --width/--height treat a bare integer as a fixed cell count, not a percentage:

--height <HEIGHT>   The height if the pane is floating as a bare integer (eg. 1) or percent (eg. 10%)
--width  <WIDTH>    The width if the pane is floating as a bare integer (eg. 1) or percent (eg. 10%)

The tmux branch of this same script already uses -w 90% -h 90%, and the main launch-revdiff.sh passes --width 90% --height 90% (via $POPUP_W/$POPUP_H) — so only the plan-review zellij path is affected.

How does this solve it?

Add the % so both zellij run invocations pass --width 90% --height 90%.

`zellij run --width/--height` treat a bare integer as a fixed cell count,
not a percentage. The zellij branch of launch-plan-review.sh passed
`--width 90 --height 90`, so the plan-review floating pane opened at 90
columns x 90 rows instead of 90% of the screen — a tall, skinny column
on wide terminals. The tmux branch in this same script already uses 90%.

Pass `--width 90% --height 90%` to match, so the floating pane fills 90%
of the viewport, consistent with the main launch-revdiff.sh launcher.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@max-two
max-two requested a review from umputun as a code owner June 30, 2026 00:24

@umputun umputun left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. Verified against zellij run --help (bare int is cell count, % is percent), and it matches what the main launch-revdiff.sh already does for zellij, thx

@umputun
umputun merged commit 1fa34cc into umputun:master Jun 30, 2026
2 checks passed
@max-two
max-two deleted the fix/zellij-plan-review-pane-size branch June 30, 2026 02:40
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.

2 participants