Skip to content

Copy a code block by clicking the icon in its border - #504

Open
shellicar wants to merge 13 commits into
mainfrom
feature/click-to-copy
Open

Copy a code block by clicking the icon in its border#504
shellicar wants to merge 13 commits into
mainfrom
feature/click-to-copy

Conversation

@shellicar

@shellicar shellicar commented Aug 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • A code block carries a copy icon in its top border, and clicking it puts the block's source on the clipboard.
  • Every sealed block carries one on its header, so a whole response or thinking block copies in one click.
  • An icon appears only once what it copies is finished: a closed fence, or a sealed block.
  • The status bar confirms how many lines were copied, for two seconds.
  • A click copies only when the press and release land on the same target, so dragging off cancels.
  • Everything else the mouse does still reaches the terminal, including drag-select and modified clicks.

@shellicar shellicar added the enhancement New feature or request label Aug 8, 2026
@shellicar
shellicar requested a review from bananabot9000 August 8, 2026 19:41
@shellicar shellicar self-assigned this Aug 8, 2026
@shellicar shellicar added pkg: claude-sdk-cli The new SDK-based CLI pkg: claude-core Core utilities — ansi, reflow, rendering labels Aug 8, 2026
@shellicar shellicar added this to the 1.0 milestone Aug 8, 2026
@shellicar
shellicar marked this pull request as ready for review August 8, 2026 19:41
@shellicar
shellicar force-pushed the feature/click-to-copy branch from afa5670 to 98f7af7 Compare September 12, 2026 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request pkg: claude-core Core utilities — ansi, reflow, rendering pkg: claude-sdk-cli The new SDK-based CLI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant