MacDownApp / macdown

Open source Markdown editor for macOS.
https://macdown.uranusjr.com/
9.44k stars 1.09k forks source link

auto reload the markdown file when other app edit it #630

Open jinleileiking opened 8 years ago

jinleileiking commented 8 years ago

when editing file, I like use vim.

when I have edited a file, the macdown cannot reload the edited file automatically.

Jmuccigr commented 8 years ago

Same as #564.

FranklinYu commented 8 years ago

564 has been in latest release, but according to the last few comments, this bug is not fully solved. The behavior seems to vary from machine to machine.

ousui commented 7 years ago

@franklinyu When I use vi to edit the same file, the content can't change in MacDown.

timotheecour commented 6 years ago

Likewise, not working on OSX; when editing file in sublimetext, change is not reflected in macdown

uranusjr commented 6 years ago

Should work in 0.7.2d126 (996).

timotheecour commented 6 years ago

@uranusjr @Gidgidonihah any way to publish the change so that 'check for updates' will pick this up without having to wait for next release? unfortunately brew cask reinstall --HEAD macdown doesn't work

FranklinYu commented 6 years ago

@timotheecour That release is in testing branch. We need more users to test it out before we push it to everyone. Or you may download from testing branch to try it.

timotheecour commented 6 years ago

@uranusjr I downloaded Version 0.7.2d126 2018-04-06 (996) Download Testing from https://macdown.uranusjr.com/history/testing/ when open foo.md in macdown, then edit foo.md in sublime and save, the content is not updated in macdown. Could we re-open this? or is there some particular setting I need to set?

FranklinYu commented 6 years ago

Reproduced in 0.7.2d126 on macOS 10.13. Content not updated when I focus back on MacDown.

timotheecour commented 6 years ago

also, would be good if we don't even have to focus on MacDown for its view to refresh (as an option)

silent-e commented 6 years ago

I just installed the 0.7.2d126 (996) version and I am also not seeing changes I make in another editor (MacVim for me) reflected in the file in MacDown. The Console app appears to indicate that MacDown detected a change though.

default 15:56:22.046669 -0700 MacDown Making presenter AA4B31E9-35F6-4D97-B597-EABF59C0D6BD observe change

Running MacOS High Sierra 10.13.6

FYI

megahall commented 6 years ago

I tried version Version 0.7.2d126 (996) as well, editing the file using nano in a terminal, and the file update feature did not work for me either. Running High Sierra 10.13.4.

themightyoarfish commented 4 years ago

Same problem. Version 0.7.3 (1008.4), Mojave.

themightyoarfish commented 4 years ago

I think this is very important for a developer tool to have.

uranusjr commented 4 years ago

@themightyoarfish I would not disagree :) Any interests in helping implement this feature you consider very important?

themightyoarfish commented 4 years ago

I doubt i would be up to the task, considering it has been tried before, but where would be the place to start?

uranusjr commented 4 years ago

I believe the detection-refresh framework is mostly there (which is why this was once closed). Here’s a list of things need figuring out:

  1. Is the detection somehow not working? Why not? See #564 for how detection works right now.
  2. If the current method is not working, are there alternative methods to detect changes? I’d start with looking into FSEvents.
  3. If the detection is working, maybe it’s the refreshing part that’s somehow failing? Why? (This part should be entirely contained in the editor implementation.)