Skip to content

fix(terminal): use standard Ctrl+Shift+C/V and right-click paste - #200

Merged
Cleboost merged 1 commit into
masterfrom
fix/terminal-copy-paste-shortcuts
Nov 26, 2026
Merged

Cleboost merged 1 commit into
masterfrom
fix/terminal-copy-paste-shortcuts

Conversation

@Cleboost

Copy link
Copy Markdown
Owner

Summary

  • Always send 0x03 (^C / SIGINT) on Ctrl+C (Event::Copy), even when text is selected.
  • Send 0x16 (^V) on Ctrl+V instead of hijacking it for clipboard paste, allowing vim visual block mode and bash quoted-insert.
  • Handle Ctrl+Shift+C to copy the active selection and Ctrl+Shift+V to paste from the clipboard (via ViewportCommand::RequestPaste).
  • Implement right-click (PointerButton::Secondary) paste when copy_on_select is enabled, matching the setting description.

Test plan

  • cargo test passes (12/12 unit tests).

@Cleboost
Cleboost merged commit a415e84 into master Nov 26, 2026
3 checks passed
@Cleboost
Cleboost deleted the fix/terminal-copy-paste-shortcuts branch November 26, 2026 17:42
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