Repository navigation
zellij.dev support - #53
Conversation
umputun
left a comment
There was a problem hiding this comment.
thx, looks good overall.
one thing needs fixing before merge - in launch-plan-review.sh the Zellij block uses hardcoded /tmp/ for the sentinel file. launch-revdiff.sh was updated to use TMPBASE="${TMPDIR:-/tmp}" to avoid macOS sandbox restrictions (see ff308b3). pls add the same TMPBASE var to launch-plan-review.sh and use it in the Zellij block.
There was a problem hiding this comment.
Pull request overview
Adds Zellij (https://zellij.dev) as an additional supported “overlay terminal” backend for launching revdiff, and updates user-facing docs/site content to reflect the new detection/priority order.
Changes:
- Add Zellij floating-pane launch support to both revdiff and plan-review overlay launcher scripts.
- Update website, docs, README, and plugin skill/reference docs to list Zellij and adjust terminal priority order.
- Record the new terminal backend in the changelog.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
site/index.html |
Adds Zellij to the terminal support grid and updates the displayed priority order. |
site/docs.html |
Documents Zellij in the terminal support table and updates priority text. |
README.md |
Adds Zellij to the supported terminals table and priority line. |
plugins/revdiff-planning/scripts/launch-plan-review.sh |
Adds a Zellij floating-pane overlay backend for plan review. |
CHANGELOG.md |
Notes Zellij terminal support in v0.13.0 features. |
.claude-plugin/skills/revdiff/SKILL.md |
Updates skill description and “How it works” text to include Zellij. |
.claude-plugin/skills/revdiff/scripts/launch-revdiff.sh |
Adds a Zellij floating-pane overlay backend for revdiff sessions. |
.claude-plugin/skills/revdiff/references/install.md |
Updates install/reference text to include Zellij in supported overlays. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| ZELLIJ_W="${POPUP_W%%%}" | ||
| ZELLIJ_H="${POPUP_H%%%}" | ||
| zellij run --floating --close-on-exit \ | ||
| --width "$ZELLIJ_W" --height "$ZELLIJ_H" \ | ||
| --name "$OVERLAY_TITLE" --cwd "$CWD" \ | ||
| -- sh -c "$REVDIFF_CMD; touch '$SENTINEL'" >/dev/null 2>&1 |
There was a problem hiding this comment.
The Zellij launcher runs sh -c "$REVDIFF_CMD; touch ...", but REVDIFF_CMD is built as a single string (includes $* earlier in this script). This loses argument quoting (paths/args with spaces will break) and also allows shell metacharacters in args to be interpreted by sh -c. Prefer building the revdiff invocation as an argv array and executing it directly (or write a temp launcher script and run that) instead of interpolating a command string into sh -c.
| zellij run --floating --close-on-exit \ | ||
| --width 90 --height 90 \ | ||
| --name "$OVERLAY_TITLE" \ | ||
| -- sh -c "$REVDIFF_CMD; touch '$SENTINEL'" >/dev/null 2>&1 | ||
|
|
There was a problem hiding this comment.
This Zellij block executes sh -c "$REVDIFF_CMD; touch ...", but REVDIFF_CMD is assembled as a single string containing the (potentially spaced) plan file path. That will break if the plan path contains spaces/shell metacharacters because the string is re-parsed by sh -c. Consider building the revdiff command as an argv array and passing it to zellij without sh -c, or generate a temp launcher script (as done for other backends) to preserve correct quoting.
There was a problem hiding this comment.
code the same as for cmux now
Replace `sh -c "$REVDIFF_CMD; touch ..."` with a temp launcher script in both Zellij blocks, matching the cmux/ghostty pattern. Also add TMPBASE to launch-plan-review.sh for macOS sandbox compatibility. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
umputun
left a comment
There was a problem hiding this comment.
lgtm, thx! one tiny thing i noticed - launch-plan-review.sh hardcodes --width 90 --height 90 for the Zellij block while launch-revdiff.sh uses POPUP_W/POPUP_H variables. not a blocker, just a minor inconsistency.
|
Thank you for this project!
As i see in |
* zellij.dev support * fix: use launcher script for zellij blocks to avoid sh -c quoting issues Replace `sh -c "$REVDIFF_CMD; touch ..."` with a temp launcher script in both Zellij blocks, matching the cmux/ghostty pattern. Also add TMPBASE to launch-plan-review.sh for macOS sandbox compatibility. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
Hi! This PR adds support for https://zellij.dev along tmux.
Here is screenshot of the result: