MacDownApp / MacDownApp/macdown

MacDown should automatically detect when the open file is changed and reload it

Open
#1,372 0 comments 1 reaction 0 assignees View on GitHub

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

If I open a file in MacDown but edit and save it elsewhere, MacDown does not immediately detect the change and reload the file. MacDown does have some logic to detect changes and revert to what's on disk, but I don't fully understand it.

The behavior I'm looking for is:

If the file open in MacDown is saved, then automatically detect changes to the file and reload it from disk without prompting.
If the file open in MacDown has unsaved changes, then automatically detect changes to the file and prompt the user for action.
In both cases MacDown should be able to immediately detect external changes to the file as soon as they happen. I don't know how this works, but I know that Visual Studio Code, for example, does this seamlessly.

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 existing logic for detecting external file changes and trace how an open document is reloaded or reverted. Verify the behavior for saved files and for files with unsaved changes, including the prompt path; done means external saves are detected immediately and each case follows the requested action.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, objective-c
Domain
desktop
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.