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

A one-way Markdown mirror folder

Aperta
#37 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
68/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
csharp, git, markdown

Direzione di ricerca

Read MarkdownPromptFormat.cs, MarkdownWorkflowFormat.cs, and MarkdownTransferService.cs to understand the existing format and file naming; then review the Storage section in SettingsViewModel.cs, IFilePickerService, and AppSettings.cs. Add the one-way mirror setting and folder write flow, tracking only files Prompuff created and writing each through a temporary file before rename. Done means importing the mirror restores prompts and workflows, unowned files remain untouched with a test covering that, and docs/user-guide.md explains the mirror.

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

Descrizione

enhancement

Keep the library as plain files too, so Git, Syncthing or any editor can see it: a folder that Prompuff keeps in step with the library.

What to do

  • Add a mirror folder, chosen in Settings › Storage and off until one is picked. Like Export, Prompuff writes only where the user chose.
  • The folder holds one Markdown file per prompt in the 1.0 format, with workflows in workflows/. It's flat: collections stay in the frontmatter, as in any export.
  • The mirror is one-way. Prompuff writes it, and Import stays the way files come in. A two-way mirror is #56.
  • Prompuff only ever changes or removes files it wrote. Keep track of which those are, either in the library (a new migration, never an edited one) or in a file inside the mirror, and record the choice in ROADMAP.md.
  • Write each file to a temporary name and then rename it, so Git or Syncthing never pick up half a file.
  • Remembered values never go into the mirror, since they're never exported.
  • Mirror files keeping in step with their prompts as they change is #38.

Where to look

  • src/Prompuff.Infrastructure/ImportExport/MarkdownPromptFormat.cs and MarkdownWorkflowFormat.cs: Write
  • src/Prompuff.Infrastructure/ImportExport/MarkdownTransferService.cs: how export names and writes files
  • src/Prompuff.App/ViewModels/SettingsViewModel.cs: the Storage section; IFilePickerService picks the folder
  • src/Prompuff.Application/Settings/AppSettings.cs

Done when

  • Picking a folder fills it with the library, and importing that folder into a fresh library brings back the same prompts and workflows.
  • A file in the folder that Prompuff didn't write is never changed or removed. A test covers it.
  • docs/user-guide.md describes the mirror.
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.