Quick insert: copy the result, step back, and paste it
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- csharp, macos
- Lĩnh vực
- desktop, developer-experience
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- C#
- Star
- 0
- Fork
- 1
- Merge trung bình
- 1 giờ 21 phút
- Pull request đã merge (30 ngày)
- 22
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của hazeliscoding/prompuff
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
hazeliscoding/prompuff#34 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
hazeliscoding/prompuff#22 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
hazeliscoding/prompuff#14 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 92/100
hazeliscoding/prompuff#13 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
hazeliscoding/prompuff#12 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của hazeliscoding/prompuff
Issue tương tự
-
CI: миграции на пустой PostgresĐang mởtrack:release
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
-
[Bug] [Go] Ack returns nil when the server answers with a non-OK statusCó thể đã có người làm @leizhiyuan đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
apache/rocketmq-clients#1465 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
fix(testing): HeadlessTerminal disposes services synchronouslyCó thể đã có người làm @zidad đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
RazorConsole/RazorConsole#388 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
A practical example of rulerĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
starlinghq/starling#209 ·
Maintainer thường phản hồi trong vòng 1 ngày