Skip to content

Add Copy to Clipboard action to notes panel#11

Merged
rwoll merged 2 commits into
mainfrom
copilot/add-copy-to-clipboard-button
Apr 28, 2026
Merged

Add Copy to Clipboard action to notes panel#11
rwoll merged 2 commits into
mainfrom
copilot/add-copy-to-clipboard-button

Conversation

Copilot AI commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

The notes panel only exposed Send to Copilot and Send to Terminal as ways to extract feedback markdown. Adds a Copy to Clipboard action so users can paste the feedback anywhere.

  • NotesPanel.tsx: New ClipboardIcon and copyToClipboard handler. Uses navigator.clipboard.writeText with a document.execCommand('copy') fallback for older webviews. On success, clears feedback and shows a toast — matching the other export actions.
  • Header / footer wiring: Icon-only button in the panel header (always visible, next to the optional Terminal button) and a full-width "Copy to Clipboard" button in the footer when there is content.
  • styles.ts: .panel-clipboard / .panel-dl-clipboard rules mirroring the existing terminal button styling for visual consistency.

Unlike Send to Terminal, the clipboard action has no callback dependency and is shown in all feedback modes (download, post, vscode).

Copilot AI and others added 2 commits April 27, 2026 18:35
@rwoll rwoll marked this pull request as ready for review April 28, 2026 00:37
@rwoll rwoll merged commit 149fe77 into main Apr 28, 2026
1 check passed
@rwoll rwoll deleted the copilot/add-copy-to-clipboard-button branch April 28, 2026 00:37
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.

2 participants