Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Quick insert: pick a prompt and fill in its variables

未关闭
#25 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
52/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
csharp, sqlite

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.
主要语言
C#
星标
0
派生
1
平均合并
1 小时 51 分钟
30 天内合并 PR
13

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

hazeliscoding/prompuff 的其他 Issue

查看 hazeliscoding/prompuff 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。