Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Quick insert: pick a prompt and fill in its variables

Aperta
#25 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
csharp, sqlite

Direzione di ricerca

Start with CommandPaletteViewModel.cs for keyboard navigation, then trace AnalyzeVariables and Render in PromptTemplateService.cs and the shared cache in ShellServices.cs and PromptEditorViewModel.cs. Check SqliteRenderValues.cs for persistence and find the UI, FocusOrderTests, and AccessibilityTests entry points. Done means keyboard-only selection and filling, values shared with the Render tab, and the specified UI and accessibility tests pass.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

Once Quick insert is open (#24), picking and filling in a prompt should take only the keyboard.

What to do

  • Up and Down move through the results and Enter picks one, as in the command palette. Esc closes Quick insert and changes nothing.
  • A prompt without {{variables}} goes straight on to #26.
  • A prompt with variables asks for them in the same window, one box per variable in order of first appearance, filled with its remembered values. Tab moves between the boxes and Enter (or Ctrl+Enter in a box that takes several lines) inserts. Changed values are remembered as they're typed, as on the Render tab, and a missing or empty value leaves its {{token}} in place.
  • Remembered values never go into logs. Log prompt IDs only.

Where to look

  • src/Prompuff.Application/Services/PromptTemplateService.cs: AnalyzeVariables, Render
  • src/Prompuff.Infrastructure/Repositories/SqliteRenderValues.cs: LoadAsync, SaveAsync
  • src/Prompuff.App/ViewModels/ShellServices.cs: RenderValuesCache, which the Render tab shares
  • src/Prompuff.App/ViewModels/PromptEditorViewModel.cs: how the Render tab uses the cache
  • src/Prompuff.App/ViewModels/CommandPaletteViewModel.cs: keyboard movement through results

Done when

  • A prompt can be found, picked and filled in from the keyboard alone.
  • Values typed in Quick insert show up on the prompt's Render tab, and the other way round.
  • UI tests cover a prompt with no variables, one with two, and Esc, with screenshots of each state.
  • FocusOrderTests and AccessibilityTests pass with Quick insert open.
Lingua principale
C#
Stelle
0
Fork
1
Merge medio
1h 51m
PR unite (30g)
13

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di hazeliscoding/prompuff

Tutte le issue di hazeliscoding/prompuff

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.