Skip to content

Copy selected terminal output with Ctrl + C on Windows and Linux - #23162

Open
DylanDevelops wants to merge 3 commits into
desktop:developmentfrom
DylanDevelops:ravel/error-message-copy-fix
Open

DylanDevelops wants to merge 3 commits into
desktop:developmentfrom
DylanDevelops:ravel/error-message-copy-fix

Conversation

@DylanDevelops

Copy link
Copy Markdown
Contributor

Closes #22913
Closes #22591

Description

The read-only terminal view in error dialogs (for example, a failed clone or a failed commit hook) lets you select text, but Ctrl + C didn’t copy it on Windows and Linux. xterm treats Ctrl + C as an interrupt meant for a shell and blocks the normal copy shortcut, so only Ctrl + Insert worked.

The Terminal component’s key handler now copies the selected text to the clipboard when you press Ctrl + C (or Ctrl+Shift+C). With nothing selected, Ctrl + C behaves as before. Cmd + C on macOS already worked and is unchanged.

Also related, #21840 makes error dialog text selectable via CSS. This PR only fixes the Ctrl + C shortcut in the terminal view and doesn’t depend on it. The two touch different files and work independently. I wanted to account for this just in case that PR is going to get merged at some point.

Screenshots

N/A

Release notes

Notes: [Fixed] Ctrl + C copies selected text from Git error output and hook failure output on Windows and Linux

@DylanDevelops
DylanDevelops requested a review from a team as a code owner November 10, 2026 23:17
@DylanDevelops
DylanDevelops requested review from tidy-dev and a balanced review from Copilot November 10, 2026 23:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@github-actions github-actions Bot added external Pull request originating outside of the Desktop core team needs-triage ready-for-review Pull Requests that are ready to be reviewed by the maintainers and removed needs-triage labels Nov 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for your pull request! While it doesn't meet all of our standard requirements, it appears to be a small, focused contribution and has been routed to the team for review.

Note: We still encourage linking to an issue with the help wanted label when possible, as it helps us prioritize and track contributions.

@DylanDevelops DylanDevelops changed the title Ravel/error message copy fix Copy selected terminal output with Ctrl + C on Windows and Linux Nov 10, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external Pull request originating outside of the Desktop core team ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Git Error Message Can't Be Copied Ctrl+C does not copy text from Commit Failed modal on Windows

2 participants