Add terminal copy/paste shortcuts and clipboard bridge #562
ClosedMizaro(GitHub profile, opens in a new tab)wants to merge 3 commits into
main fromrefs/pull/562/headopened View on GitHub- apps/web/src/components/ThreadTerminalDrawer.tsx line 289OutdatedResolvedby Mizaro(GitHub profile, opens in a new tab)@@ -193,0 +269,21 @@269+ event.preventDefault();270+ event.stopPropagation();271+ if (event.clipboardData) {272+ event.clipboardData.setData("text/plain", selection);273+ return;274+ }275+ void copyTerminalSelection();276+ };277+278+ const onPaste = (event: ClipboardEvent) => {279+ const text = event.clipboardData?.getData("text/plain");280+ if (!text) {281+ return;282+ }283+ event.preventDefault();284+ event.stopPropagation();285+ void sendTerminalInput(text, "Failed to paste terminal clipboard");286+ };287+288+ mount.addEventListener("copy", onCopy);289+ mount.addEventListener("paste", onPaste);
maria-rcks closed this
Sign in to join this conversation.
Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID:
7525993c-1b70-4684-85ae-97208df788e9You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share