MacDownApp / MacDownApp/macdown

File extensions should not be changed on save

Open
#600 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

awaiting feedback help wanted
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

Open the contributing guide

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.