Allow dropping images and files to paste into the standalone app
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 静か
- 技術スタック
- rust, tauri, typescript
- 領域
- desktop
調査の方向性
まず、上流の Tauri issue tauri-apps/tauri#14373 のステータスを確認し、standalone/src-tauri/tauri.conf.json、standalone/src-tauri/src/lib.rs、standalone/src/tauri-adapter.ts にある既存のスタブを確認します。lib/src/lib/platform/types.ts と lib/src/components/wall/use-session-persistence.ts を通じて onFilesDropped の配線を追跡します。完了の条件は、standalone でネイティブのファイル/画像ドロップによってパスが貼り付けられ、HTML5 のペインの並べ替えを壊さないことです。
索引モデルが issue の本文から書いたものです。
説明
Background
Dragging and dropping on a terminal pane has two use cases:
- Drop a file or image to paste its path into the terminal.
- Drag a pane tab to rearrange the pane layout.
In the VS Code extension only (2) works — file/image drop into a webview is blocked by VS Code itself, which is a platform limitation we can't change.
In the standalone Tauri app we previously had only (1): file/image drop pasted paths, but pane drag did not work. This was because Tauri 2's dragDropEnabled: true (the default) captures OS drag-drop natively, and on Windows that blocks all HTML5 drag events — including internal Dockview pane reorder. See tauri-apps/tauri#8581 and tauri-apps/tauri#14373.
We've now set dragDropEnabled: false, which restores pane drag (case 2). The cost is that case (1) is currently broken in standalone too: Chromium's webview doesn't expose File.path, so a vanilla HTML5 drop can't recover the path string without OS-level cooperation.
What we want
Re-enable file/image drop-to-paste in the standalone without re-breaking pane drag.
Blocker
Depends on upstream Tauri offering a way to receive file paths from native OS drops while still letting HTML5 drag events flow to the webview. Tracked upstream at tauri-apps/tauri#14373. Once that lands (or a usable plugin/escape hatch appears) we can flip dragDropEnabled back on (or adopt the new API) and re-activate the stubs.
Stubs left in the codebase
Wiring is intentionally left in place so re-enabling is a small change:
standalone/src-tauri/tauri.conf.json—dragDropEnabled: falseis the kill switch.standalone/src-tauri/src/lib.rs— theWindowEvent::DragDrophandler that emitsmouseterm://files-dropped.standalone/src/tauri-adapter.ts— themouseterm://files-droppedlistener andonFilesDroppedplumbing.lib/src/lib/platform/types.ts— the optionalonFilesDroppedinterface method.lib/src/components/wall/use-session-persistence.ts— theplatform.onFilesDropped?.(…)subscription that callspasteFilePaths.
Note on VS Code
Doesn't apply to the VS Code extension — file drop into VS Code webviews is outside our control.
- 主要言語
- TypeScript
- スター
- 5
- フォーク
- 1
- 平均マージ
- 12時間 18分
- マージ済み PR(30日)
- 387
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
diffplug/dormouse のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
diffplug/dormouse#912 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
diffplug/dormouse#1079 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 18/100
diffplug/dormouse#1078 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
diffplug/dormouse#1076 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
diffplug/dormouse#1074 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
diffplug/dormouse の issue をすべて見る
似ている issue
-
[Docs] README: FAQ setup command, IDA in the intro, Node badge対応中かも @akram1089 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
[Feature]: [P3] engine-rs: the package source hash should ignore line endings and untracked filesオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
maniator/verticopolis#880 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
siyuan-note/siyuan#20353 ·
メンテナーはふだん 1 日以内に返信
-
afk-ok area:data-quality importer size:S
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
enorm-labs/event-junkie#3027 ·
メンテナーはふだん 1 日以内に返信