codymikol / git-down

A rewrite of the popular project GitUp that works in Linux, Mac, and Windows.
MIT License
29 stars 3 forks source link

Race condition after leaving editor #84

Open codymikol opened 1 year ago

codymikol commented 1 year ago

Sometimes when leaving the editor, temporary files are created / deleted. Because the editor scans for changes on pulling focus, this can lead to the temporary files showing up.

Might be better to have the best of both worlds, we turn on a file watcher while the window has focus and turn it off when it goes in the background