Skip to content

feat(launch): pass REVDIFF_CONFIG to overlay and add configurable popup size#17

Merged
umputun merged 2 commits intoumputun:masterfrom
nnemirovsky:feat/launch-script-improvements
Apr 5, 2026
Merged

feat(launch): pass REVDIFF_CONFIG to overlay and add configurable popup size#17
umputun merged 2 commits intoumputun:masterfrom
nnemirovsky:feat/launch-script-improvements

Conversation

@nnemirovsky
Copy link
Copy Markdown
Contributor

Summary

  • Pass REVDIFF_CONFIG env var as --config flag to revdiff inside tmux popups. The sh -c invocation doesn't inherit fish universal variables, so the config path was lost in overlay shells.
  • Add REVDIFF_POPUP_WIDTH and REVDIFF_POPUP_HEIGHT env vars to override the default 90% tmux popup dimensions.

…up size

Two improvements to the launch script:

1. Pass REVDIFF_CONFIG env var as --config flag to revdiff inside tmux
   popups. The sh -c invocation doesn't inherit fish universal variables,
   so the config path was lost in overlay shells.

2. Add REVDIFF_POPUP_WIDTH and REVDIFF_POPUP_HEIGHT env vars to override
   the default 90% tmux popup dimensions.
Copy link
Copy Markdown
Owner

@umputun umputun left a comment

Choose a reason for hiding this comment

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

thx for the PR, makes sense - fish universal vars not propagating through sh -c is a real issue.

couple things:

  1. REVDIFF_POPUP_WIDTH/REVDIFF_POPUP_HEIGHT only affect tmux - wezterm path still has hardcoded --percent 90. not a blocker but worth noting for consistency
  2. new env vars (REVDIFF_POPUP_WIDTH, REVDIFF_POPUP_HEIGHT) aren't documented anywhere - would be good to add them to the reference docs or README

otherwise LGTM, clean and minimal

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR ensures revdiff’s config path is preserved when launching inside tmux popups (where sh -c won’t see fish universal vars) and adds env-var overrides for tmux popup dimensions.

Changes:

  • Inject REVDIFF_CONFIG into overlay-launched revdiff runs via a computed --config=... flag.
  • Add REVDIFF_POPUP_WIDTH / REVDIFF_POPUP_HEIGHT to override tmux popup -w/-h defaults.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@nnemirovsky
Copy link
Copy Markdown
Contributor Author

addressed both points in 65020ff:

  1. applied REVDIFF_POPUP_HEIGHT to wezterm split-pane (strips trailing % since --percent takes a number). kitty overlay is full-screen by default so no change needed there.
  2. added docs for REVDIFF_POPUP_WIDTH/HEIGHT to references/config.md.

@nnemirovsky nnemirovsky requested a review from umputun April 5, 2026 04:32
Copy link
Copy Markdown
Owner

@umputun umputun left a comment

Choose a reason for hiding this comment

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

LGTM, thx for addressing both points. clean and well-scoped

@umputun umputun merged commit 6f3ec79 into umputun:master Apr 5, 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.

3 participants