Skip to content

Match Linux terminal copy/paste behavior#15

Open
joshdoe wants to merge 2 commits intojohannesjo:mainfrom
joshdoe:fix/linux-terminal-clipboard
Open

Match Linux terminal copy/paste behavior#15
joshdoe wants to merge 2 commits intojohannesjo:mainfrom
joshdoe:fix/linux-terminal-clipboard

Conversation

@joshdoe
Copy link

@joshdoe joshdoe commented Mar 9, 2026

Summary

  • align terminal copy/paste behavior on Linux with the expected platform flow
  • left-drag selects, right-click when selection is present clears the selection, right-click with no selection pastes
  • wire the Electron and preload IPC needed for the updated terminal clipboard path
  • update the terminal view to use the platform-specific handling

Route terminal clipboard access through Electron so Linux can use both the normal clipboard and the X11/selection buffer. This avoids relying on browser-only clipboard APIs for behaviors that users expect to match native terminal emulators under Linux and WSL2.

Update TerminalView to follow the Linux workflow you validated in testing: left drag selects, right click copies the current selection and clears it, and a subsequent right click pastes when no selection is active. Keep middle-click paste from the selection buffer and preserve keyboard copy/paste, including Ctrl+Insert and Shift+Insert.
@joshdoe joshdoe marked this pull request as ready for review March 9, 2026 18:54
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.

1 participant