Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Mirror files follow their prompts through edits, renames and removal

Open
#38 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
csharp, git, sqlite
Domain
database, desktop

Research direction

Read src/Prompuff.Application/Services/PromptService.cs first, then inspect src/Prompuff.Infrastructure/Persistence/LibraryChangeMonitor.cs and LibraryWatcher in src/Prompuff.App/ViewModels/ShellServices.cs to understand how saves and data_version changes are handled. Trace the mirror behavior for prompts and workflows, and review ROADMAP.md for the Recently deleted rule. Done means Git shows edits, renames and removals as single-file changes, the specified cases are tested, and a missing or read-only mirror does not prevent saving.

Written by the indexing model from the issue text.

Description

enhancement

Once the mirror folder exists (#37), each file has to follow its prompt, so that Git shows a saved change as an edit rather than as a new file.

What to do

  • Saving a prompt rewrites its file. A metadata change, such as a favorite or tags, rewrites the frontmatter too, since it's in the file.
  • A prompt keeps its file name when its title changes. Two prompts with the same title get distinct names.
  • Moving a prompt to Recently deleted leaves its file alone, and removing it for good deletes the file, so a restore never has to bring a file back. Record this in ROADMAP.md.
  • Workflows follow the same rules in workflows/.
  • Changes from the CLI or another copy reach the mirror too. The app already notices them through data_version.
  • A mirror folder that's gone or read-only doesn't stop a save. Prompuff says what happened, and that the library is safe.

Where to look

  • src/Prompuff.Application/Services/PromptService.cs: where saves, deletes and restores happen
  • src/Prompuff.Infrastructure/Persistence/LibraryChangeMonitor.cs and LibraryWatcher in src/Prompuff.App/ViewModels/ShellServices.cs

Done when

  • With the mirror under Git, an edit, a rename and a removal each show up in git diff as that one change to that one file.
  • Tests cover renames, duplicate titles, Recently deleted, removing for good, and a missing folder.
Dominant language
C#
Stars
0
Forks
1
Avg merge
1h 21m
Merged PRs (30d)
22

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from hazeliscoding/prompuff

All issues in hazeliscoding/prompuff

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.