Skip to content

fix: prefer OSC 52 clipboard in Zellij sessions#176

Merged
agavra merged 1 commit intoagavra:mainfrom
thiblahute:fix/zellij-osc52-clipboard
Feb 12, 2026
Merged

fix: prefer OSC 52 clipboard in Zellij sessions#176
agavra merged 1 commit intoagavra:mainfrom
thiblahute:fix/zellij-osc52-clipboard

Conversation

@thiblahute
Copy link
Copy Markdown
Contributor

@thiblahute thiblahute commented Feb 12, 2026

Summary

  • Add ZELLIJ env var check to should_prefer_osc52() so clipboard copying via OSC 52 is preferred when running inside Zellij, matching existing behavior for tmux and SSH sessions.

That is necessary when using zellij web.

Like tmux and SSH, [Zellij](https://github.com/zellij-org/zellij)
intercepts clipboard access so arboard may copy to an inaccessible
clipboard. Check the ZELLIJ env var to prefer OSC 52 in these sessions.
Copy link
Copy Markdown
Owner

@agavra agavra left a comment

Choose a reason for hiding this comment

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

This is the first I'm hearing if zellij. Very cool, thanks for the fix again @thiblahute!

@agavra agavra merged commit fcf9282 into agavra:main Feb 12, 2026
4 checks passed
@thiblahute
Copy link
Copy Markdown
Contributor Author

This is the first I'm hearing if zellij. Very cool, thanks for the fix again @thiblahute!

It is really great yes, I would say much better than tmux ;)

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