[体验问题] 新建下载任务时重命名会丢失原文件后缀

Open Beginner friendly
#1,677 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
dart, flutter
Domain
desktop, frontend

Research direction

Start by locating the desktop download task form and the rename field; the issue does not name specific files or tests. Check how the original filename is supplied to that field and how the entered name is used when saving. Done means entering meeting-notes for report.pdf saves as meeting-notes.pdf, while still allowing the extension to be changed manually.

Written by the indexing model from the issue text.

Description

Description(required)

新建单文件下载任务时,如果在「重命名」里只填新的主文件名,Gopeed 会把原后缀一起替换掉。每次改名都得手动把后缀再写一遍。

复现步骤

  1. 新建一个原文件名为 report.pdf 的下载任务。
  2. 在「重命名」里输入 meeting-notes,然后开始下载。
  3. 下载完成后,保存的文件名是 meeting-notes。目前需要输入 meeting-notes.pdf 才能保留 .pdf。

期望行为

能只修改主文件名并保留原后缀。例如,解析出原文件名后预填 report.pdf,默认只选中 report,这样直接输入新名字就可以保留 .pdf,有需要时也能手动改后缀。

App Version(required)

仓库源码核对版本为 v2.0.0-beta.4-14-gbe0a3954。实际使用的安装版本待补充。

OS Version(required)

桌面端,实际操作系统及版本待补充。

Dominant language
Dart
Stars
27.7k
Forks
1.8k
Avg merge
3d 3h
Merged PRs (30d)
26

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 GopeedLab/gopeed

All issues in GopeedLab/gopeed

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.