Skip to content

feat: improve terminal text selection with persistent highlight and click bindings#69

Merged
gi11es merged 1 commit intogi11es:masterfrom
wonderchook:feat/improve-terminal-text-selection
Apr 5, 2026
Merged

feat: improve terminal text selection with persistent highlight and click bindings#69
gi11es merged 1 commit intogi11es:masterfrom
wonderchook:feat/improve-terminal-text-selection

Conversation

@wonderchook
Copy link
Copy Markdown
Contributor

Summary

Closes #68

  • Change tmux MouseDragEnd1Pane from copy-pipe-and-cancel to copy-pipe-no-clear so drag selections stay visible after mouse release
  • Add double-click binding to select word and copy to clipboard
  • Add triple-click binding to select line and copy to clipboard
  • All bindings pass through mouse events when the app has mouse capture or copy-mode is already active

Test plan

  • Drag to select text — verify highlight persists after releasing the mouse
  • Cmd+V in another app — verify selected text is on clipboard
  • Click elsewhere or press Escape — verify selection dismisses
  • Double-click a word — verify word is selected and copied
  • Triple-click a line — verify line is selected and copied
  • Open vim/htop (mouse-capture apps) — verify double/triple-click passes through normally

🤖 Generated with Claude Code

…lick bindings

Change tmux copy-mode mouse bindings from copy-pipe-and-cancel to
copy-pipe-no-clear so selections stay visible after release. Add
double-click (select word) and triple-click (select line) bindings
that enter copy mode, select, and copy to clipboard via pbcopy.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@gi11es
Copy link
Copy Markdown
Owner

gi11es commented Apr 5, 2026

Much better tmux defaults, thank you!

@gi11es gi11es merged commit 548f704 into gi11es:master Apr 5, 2026
3 checks passed
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.

Improve terminal text selection: persistent highlight, double/triple-click

2 participants