[feat] clipboard: Copy and paste content between OpenDirector and other apps

オープン
#474 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
22/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
desktop, frontend

調査の方向性

Start by reading the linked roadmap and design context (#265, #262, #362) and the clipboard permissions PR #458, then locate the existing in-app canvas copy/paste handlers and the project asset service they call. Trace how an image node selection is represented on Web and in the packaged desktop build before adding system clipboard writes or reads. Done means the acceptance criteria are exercised in both directions between OpenDirector clients and external apps, with documented fallbacks where the browser cannot write video.

索引モデルが issue の本文から書いたものです。

説明

area:canvas area:desktop help wanted type:feat

Parent roadmap: #265.

Related: Canvas roadmap #262, desktop RFC #362, and clipboard permissions PR #458.

Goal and scope

Provide consistent, bidirectional copy and paste across OpenDirector Web, OpenDirector desktop, and compatible external apps. Use the platform's standard shortcuts in both directions. Paste into OpenDirector as editable project content where applicable, or into an external app as text, an image, or a file according to what the destination accepts.

Example scenario

In OpenDirector on Web or desktop, select an image node and press Ctrl+C (Cmd+C on macOS). Switch to an email draft, a Codex chat, or a WeChat conversation and press Ctrl+V (Cmd+V on macOS). The reported behavior is that the image does not appear. The expected behavior is that the selected image appears inline or as an attachment in a composer that accepts pasted images.

Proposed behavior

Selection Clipboard content Example destination
Text in a chat reply or canvas text node Plain text preserving Unicode and line breaks TextEdit or Notepad
One image asset Clipboard image data Keynote or PowerPoint
One video asset Video file data or a file reference, as supported by the client Finder or File Explorer
  • Preserve existing in-app canvas copy and paste. When an image node is selected, the standard Copy shortcut should make the image available to other apps while preserving in-app node paste. Standard text selection keeps the native copy shortcut.

  • Resolve media through the existing project asset service. Use browser clipboard formats on Web and platform clipboard support in the desktop app. Validate video paste in a compatible receiver. If the browser cannot write the video to the clipboard, explain the limitation and offer a download. Avoid buffering an entire large video in the renderer.

  • Report copy success only after the system clipboard write succeeds. Show actionable English and Chinese errors for unavailable media or clipboard failures.

  • Accept pasted text, images, and video files from external apps through the same canvas import and validation rules on Web and desktop. When copying between OpenDirector clients, preserve editable nodes and resolve their assets in the destination project.

Acceptance criteria

  • Test both directions between compatible external apps and each OpenDirector client, plus Web → desktop and desktop → Web. Use the same shortcuts and samples, and check equivalent pasted content at the same destination. Verify imported assets remain usable after reopening the destination project. Record format limitations and verify the documented fallback where clipboard transfer is unavailable.

  • From Web and desktop, select an image node and use the platform Copy shortcut. Paste into an email draft, Codex, and WeChat where the composer accepts images. Verify that the selected image appears inline or as an attachment. Record the tested OS, browser or desktop build, and receiving app.

  • In supported browsers and packaged macOS and Windows builds, paste copied Chinese and English text into a native editor and verify line breaks.

  • Paste a copied image into a compatible slide editor and a video into an app that accepts pasted video files. Verify the download fallback in browsers without video clipboard support. Open the pasted or downloaded video and verify it matches the selected asset.

  • Switch projects before pasting and verify the copied media is still usable. Exercise a large video and verify the app remains responsive.

  • Verify internal canvas copy and paste still works. Exercise missing media and failed clipboard writes in both UI languages.

主要言語
TypeScript
スター
119
フォーク
16
平均マージ
16時間 13分
マージ済み PR(30日)
195

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ThinkFlowLab/OpenDirector のほかの issue

ThinkFlowLab/OpenDirector の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。