MacDownApp / MacDownApp/macdown
File extensions should not be changed on save
Nobody has claimed this yet.
- Dominant language
- Rich Text Format
- Stars
- 9.8k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
MacDown should not change the file extension of a file when it is saved. This is very frustrating when working with files that have an 'outer' extension as well as the normal `.md` extension.
To reproduce:
1. Open a file that has an extension that is not `.md` (i.e. `my_file.md.erb`)
2. Save the file
3. Observe the file extension changing
A possible solution is to provide an option to disable this, or to only change the file extension if there is no `.md` anywhere in the title, so that it will not affect `.erb` files.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating MacDown's save and file-extension handling; no source file or test is named in the issue. Reproduce the problem with a file such as my_file.md.erb, then ensure saving does not replace its outer extension while preserving normal Markdown-file behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, objective-c
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100