Quick insert: copy the result, step back, and paste it
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 55/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- csharp, macos
調査の方向性
Start with HandleLaunchAsync in src/Prompuff.App/Views/MainWindow.axaml.cs, then read WindowActivation.cs, X11GlobalHotkeyService.cs, and IClipboardService.cs to trace clipboard handling and focus restoration. Implement the platform specific behavior behind OS checks, add the Quick save setting and document its default in ROADMAP.md. Done means the Windows and X11 paste paths work both on and off, macOS permission handling is covered by UI tests, and docs/user-guide.md explains the setting and permission.
索引モデルが issue の本文から書いたものです。
説明
The last step of Quick insert: the rendered prompt ends up in the app you were typing in.
What to do
- Copy the result through
IClipboardService, then step back to the app you came from, as a hotkey Quick save does: the window goes back to the tray or the taskbar if it was there. - Add Paste after inserting, a setting in Settings › Quick save. When it's on, Prompuff also presses the paste key in that app once it has focus again:
- Windows:
SendInputwith Ctrl+V. - X11: XTest with Ctrl+V. The release smoke test already presses keys through XTest.
- macOS: a Cmd+V key event, which needs Accessibility access. Settings asks for it, and says so plainly. Without it the result is only copied.
- Windows:
- All of this lives in
src/Prompuff.App/Platform, each part behind itsOperatingSystem.Is…()check. - Today nothing hands focus back to the previous app on purpose. It happens as a side effect of hiding or minimizing the window. Make sure that app has focus before the paste key goes, or the paste lands somewhere else.
- The setting's default is a decision: record it in ROADMAP.md.
Where to look
src/Prompuff.App/Views/MainWindow.axaml.cs:HandleLaunchAsync, which sends the window back after Quick savesrc/Prompuff.App/Platform/WindowActivation.cssrc/Prompuff.App/Platform/X11GlobalHotkeyService.cs: how Prompuff already talks to X11src/Prompuff.Application/Interfaces/IClipboardService.cs
Done when
- On Windows and X11, with Paste after inserting on, Quick insert from Notepad or gedit pastes the result there, and with it off the result is only copied.
- On macOS without Accessibility access the result is copied, and Settings explains how to allow pasting. The macOS UI tests cover that path on CI. Pasting with access granted can only be checked by hand on a Mac, so the pull request says so.
-
docs/user-guide.mddescribes the setting and the macOS permission.
- 主要言語
- C#
- スター
- 0
- フォーク
- 1
- 平均マージ
- 1時間 21分
- マージ済み PR(30日)
- 22
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
hazeliscoding/prompuff のほかの issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
hazeliscoding/prompuff#34 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
hazeliscoding/prompuff#22 ·
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
hazeliscoding/prompuff#14 ·
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 1/5 1〜3時間 初心者へのやさしさ 92/100
hazeliscoding/prompuff#13 ·
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
hazeliscoding/prompuff#12 ·
メンテナーはふだん 1 日以内に返信
hazeliscoding/prompuff の issue をすべて見る
似ている issue
-
feature-request
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
stripe/stripe-dotnet#3484 ·
メンテナーはふだん 2 日以内に返信
-
bug mcp misleading small
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
-
accessibility help wanted macos
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
dorlugasigal/annotator#42 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
AvaloniaUI/Avalonia#22568 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
LorisYounger/VPet#589 · コメント 2 件 ·