A one-way Markdown mirror folder
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
- Ambito
- backend, database, desktop, documentation
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
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.csandMarkdownWorkflowFormat.cs:Writesrc/Prompuff.Infrastructure/ImportExport/MarkdownTransferService.cs: how export names and writes filessrc/Prompuff.App/ViewModels/SettingsViewModel.cs: the Storage section;IFilePickerServicepicks the foldersrc/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.mddescribes the mirror.
- Lingua principale
- C#
- Stelle
- 0
- Fork
- 1
- Merge medio
- 1h 51m
- PR unite (30g)
- 13
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di hazeliscoding/prompuff
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
hazeliscoding/prompuff#34 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
hazeliscoding/prompuff#22 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
hazeliscoding/prompuff#14 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue
Difficoltà 1/5 1-3 ore Idoneità per principianti 92/100
hazeliscoding/prompuff#13 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
hazeliscoding/prompuff#12 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di hazeliscoding/prompuff
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
KnifeLemon/Filee#363 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
-
area-Native untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
dotnet/machinelearning#7837 ·
I maintainer di solito rispondono entro 2 giorni