Skip to content

feat: add option to copy using osc52#786

Open
asla9709 wants to merge 1 commit intodlvhdr:mainfrom
asla9709:feat/osc52-clipboard
Open

feat: add option to copy using osc52#786
asla9709 wants to merge 1 commit intodlvhdr:mainfrom
asla9709:feat/osc52-clipboard

Conversation

@asla9709
Copy link
Copy Markdown

@asla9709 asla9709 commented Feb 27, 2026

Summary

  • Add `oscClipboard` config option to enable OSC 52 clipboard support for headless/remote machines
  • When enabled, the copy number (y) and copy url (Y) keybindings use OSC 52 escape sequences instead of system clipboard
  • Supports tmux and screen terminal multiplexers

Fixes #559

How did you test this change?

  • Enabled `oscClipboard: true` in config
  • Verified copying works via tmux/screen to local clipboard
  • Verified default behavior still uses system clipboard

Images/Screenshots

N/A

Add `oscClipboard` config option to enable OSC 52 clipboard support
for headless/remote machines where traditional clipboard access isn't
available.

When enabled, the copy number (y) and copy url (Y) keybindings will
use OSC 52 escape sequences instead of the system clipboard. This
allows clipboard content to be forwarded to the local machine via
terminal multiplexers like tmux or screen.

Fixes dlvhdr#559

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@asla9709
Copy link
Copy Markdown
Author

AI Disclaimer:
I wrote this manually a year ago, had Claude rebase it on the current repo.

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.

Feature: Tmux paste buffer and/or OSC 52 copies

1 participant