[PR #8305] feat(tui): add double-click to copy word in TUI messages #12698

Closed
opened 2026-02-16 18:17:35 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/8305

State: closed
Merged: No


Add multi-click text copy functionality for messages in the TUI:

  • Double-click copies the word at cursor position
  • Triple-click copies the entire line
  • Works on both user and assistant messages

Files:

  • multi-click.ts: Multi-click detector with timeout handling
  • text-boundaries.ts: Position-to-text mapping for word extraction
  • use-multi-click-text-copy.ts: Hook integrating detection and clipboard
  • session/index.tsx: Integration into TextPart, ReasoningPart, UserMessage

What does this PR do?

How did you verify your code works?

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/8305 **State:** closed **Merged:** No --- Add multi-click text copy functionality for messages in the TUI: - Double-click copies the word at cursor position - Triple-click copies the entire line - Works on both user and assistant messages Files: - multi-click.ts: Multi-click detector with timeout handling - text-boundaries.ts: Position-to-text mapping for word extraction - use-multi-click-text-copy.ts: Hook integrating detection and clipboard - session/index.tsx: Integration into TextPart, ReasoningPart, UserMessage ### What does this PR do? ### How did you verify your code works?
yindo added the pull-request label 2026-02-16 18:17:35 -05:00
yindo closed this issue 2026-02-16 18:17:35 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12698