Repository navigation
Conversation
A macOS terminal may keep Cmd+C for itself, and while the TUI owns mouse reporting the terminal has no selection to copy. In a terminal without the Kitty keyboard protocol, Cmd+C therefore copies nothing. Copy the text when a drag ends, on screens and in text editors. Skip blank selections so a slip over empty cells keeps the clipboard. Other platforms and browser sessions are unchanged. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Hi @nybrum, thanks for your contribution! This pull request is currently waiting for the CLA Assistant check to pass before the CI process can continue. Please follow the signing link shown by CLA Assistant on this PR. If you have already signed the CLA but the check is still failing, please make sure that all email addresses used in your commits are added to and verified on your GitHub account. After updating your email settings or signing the CLA, please click Recheck in the CLA Assistant comment/check so the status can be refreshed. Once the CLA Assistant check passes, CI will continue automatically. |
|
head_sha: 变更摘要本 PR 为 TUI 增加 macOS 下的「拖选即复制」能力:在终端接管鼠标上报(终端自身没有选区)且 Cmd+C 不会转发给应用的情况下,鼠标拖拽结束即把选中文本写入剪贴板,并保持选区高亮。核心实现集中在 主要改动
|
|
head_sha: 代码审查✅ 未发现问题 |
Paired: GitHub #362 ↔ GitCode !257
Summary
serve) sessions are unchanged.Behavior to review
RightClickScreenCopyMixin, including dialogs throughBaseDialog.TextArea._selecting, and the screen path hooksScreen._watch__selecting. Both need a check on a Textual upgrade.Validation
scripts/chrys_test.py --full): 41,251 tests passed and 136 skipped; 1,346 architecture tests passed.tyfor macOS, Linux and Windows targets, passed.tests/app/tui/behaviors/test_copy_on_select.pycover drag, click, keyboard selection, blank drag and the disabled path. The existing right-click test now turns copy-on-drag off, so it asserts the same thing on every platform.pbcopy: a click and an unfinished drag copied nothing; releasing the drag sent the selected word once topbcopyand as OSC 52.🤖 Generated with Claude Code