Skip to content

zellij.dev support - #53

Merged
umputun merged 2 commits into
umputun:masterfrom
DmitryBochkarev:zellij
Apr 8, 2026
Merged

umputun merged 2 commits into
umputun:masterfrom
DmitryBochkarev:zellij

Conversation

@DmitryBochkarev

Copy link
Copy Markdown
Contributor

Hi! This PR adds support for https://zellij.dev along tmux.

Here is screenshot of the result:

image

@DmitryBochkarev
DmitryBochkarev requested a review from umputun as a code owner April 7, 2026 13:03

@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.

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.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

Comment on lines +67 to +72
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

Copilot AI Apr 7, 2026

Copy link

Choose a reason for hiding this comment

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

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.

Copilot uses AI. Check for mistakes.
Comment on lines +56 to +60
zellij run --floating --close-on-exit \
--width 90 --height 90 \
--name "$OVERLAY_TITLE" \
-- sh -c "$REVDIFF_CMD; touch '$SENTINEL'" >/dev/null 2>&1

Copilot AI Apr 7, 2026

Copy link

Choose a reason for hiding this comment

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

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.

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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 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, 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.

@umputun
umputun merged commit a2eed75 into umputun:master Apr 8, 2026
@DmitryBochkarev

Copy link
Copy Markdown
Contributor Author

Thank you for this project!

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

As i see in launch-plan-review.sh all providers use hardcoded 90%, so in an one way it consistent :)

@DmitryBochkarev
DmitryBochkarev deleted the zellij branch April 8, 2026 03:07
sanchesfree pushed a commit to sanchesfree/revdiff that referenced this pull request Apr 8, 2026
* 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]>
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.

3 participants