lwblackledge / file-watcher

An open file watcher for Atom that will prompt when the file on disk has changed.
MIT License
34 stars 7 forks source link

Reload all changes of the same file together #24

Open anatoli26 opened 7 years ago

anatoli26 commented 7 years ago

Subj, (also somehow related to #7 and #10 but not the same). Say one file is changed 3 times before I switch to Atom and get the pop-up. So when I switch to Atom, instead of getting one pop-up for the same file for the 3 changes together, I get two or more pop-ups, one for each change, on the same file.

I didn't check the internals, but it looks like file-watcher queues every change separately and asks about each of them. It would be much better to ask for reload of the same file just once treating all the changes as a single change.

lwblackledge commented 7 years ago

This is a good idea for chatty files. I'll look into cleaning this up.