When I want to close Atom (system reboot, stop working on a certain project, etc.) I’m often prompted several times about files that “have changes”.
Now: the weird thing is that the file doesn’t have any blue dot to notify of changes, and in fact I haven’t done any change to it, compared to what WAS on disk. The problem is that I simply switched over to another feature branch in which this file doesn’t exist, and thus there’s indeed a change, a difference compare to disk: the whole file
Since I always want to check if this message is spurious (that is: the file belongs to another branch, has been committed and thus I can disregard it) or instead if the file truly needs to be saved, this takes me quite a while. Also: often Atom restores these non-existing files when I reopen the editor, and to avoid being prompted again, I manually go over every file for which Atom complains, and I close their tab before closing the whole window again.
So: an obvious solution might be to remember to always close all tabs (or “Close other tabs” except the last one I’m working on) every time that I wan to switch branches.
But is there something more user friendly? a package that take care of this? a github Issue that is keeping track of this defect (a resolution might be to just close the tabs on behalf of the user when Atom knows that there was no change in the previous branch, and now the file disappeared… after all, it already closes the tab when a file is moved/deleted )?