Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Quick insert: copy the result, step back, and paste it

Abierto
#26 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
55/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
csharp, macos

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement

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: SendInput with 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.
  • All of this lives in src/Prompuff.App/Platform, each part behind its OperatingSystem.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 save
  • src/Prompuff.App/Platform/WindowActivation.cs
  • src/Prompuff.App/Platform/X11GlobalHotkeyService.cs: how Prompuff already talks to X11
  • src/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.md describes the setting and the macOS permission.
Lenguaje dominante
C#
Estrellas
0
Forks
1
Merge medio
1 h 51 min
PR fusionados (30 d)
13

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de hazeliscoding/prompuff

Todos los issues de hazeliscoding/prompuff

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.