Quick insert: copy the result, step back, and paste it
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 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 分钟
- 30 天内合并 PR
- 22
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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
-
难度 2/5 1-3 小时 新手友好度 76/100
Nimblesite/SharpLsp#468 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
elastic/ecs-dotnet#575 ·
-
alerts bug effort:S P2
难度 2/5 1-3 小时 新手友好度 76/100
nightscout/nocturne#2511 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 2 天内回复
-
Crash in v3.00未关闭
难度 2/5 1-3 小时 新手友好度 62/100
arkane-systems/mousejiggler#140 ·