marktext / marktext/marktext

Prompt to reload file when saving to cloud synced locations

Open
#3,810 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

:beetle: pri/major :hamster: platform/windows 🐛 bug
Dominant language
TypeScript
Stars
61.6k
Forks
4.6k
Avg merge
23h 49m
Merged PRs (30d)
89

Description

Description

Whenever I save a file to a folder inside iCloud Drive, which uses Windows cloud sync API, Marktext prompts to reload the file. Sometimes clicking okay causes the changes to the file to vanish, other times it doesn't do anything. Anyway it is annoying and I would fix it myself if I had the skills.

Steps to reproduce
  1. Save a file to a cloud synced location
  2. Edit the file
  3. Save the changes

Expected behavior:

The changes are saved to disk and nothing happens.

Actual behavior:

After the changes are applied, a prompt appears saying ""filename.md" has been changed on disk. Do you want to reload it?" If you click ok, changes may be lost or not, don't know depending on what (usually they are kept).

Recording2024-06-04161808-ezgif com-video-to-gif-converter

Versions
  • MarkText version: v0.17.1
  • Operating system: Windows 11 Pro 23H2

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

No source file or test is named. Reproduce on Windows 11 with a file in an iCloud Drive folder, then trace the save and reload prompt behavior; done means saving edits does not prompt for a reload and the changes remain intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, typescript
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.