Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Quick insert: pick a prompt and fill in its variables

Đang mở
#25 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
52/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, sqlite

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
C#
Star
0
Fork
1
Merge trung bình
1 giờ 51 phút
Pull request đã merge (30 ngày)
13

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của hazeliscoding/prompuff

Tất cả issue của hazeliscoding/prompuff

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.