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

A one-way Markdown mirror folder

Đang mở
#37 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
68/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, git, markdown

Hướng nghiên cứu

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.

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

Mô tả

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

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.