I guess it’s nearly Halloween, since zombie files are rising to eat our brains!
Steps to reproduce:
- create a file from terminal (“echo foo > foo.txt”)
- open file in ST2 (double click foo.txt in sidebar)
- delete file from terminal (“rm foo.txt”)
- note that the file disappears (zoop!) from the sidebar in ST2
- switch back to ST2
- note that the foo.txt tab is still open and is marked as dirty
- switch back to terminal
- note that the file has been recreated in the file system
Part of this is probably cause I have “save on focus lost” set, but when ST2 notices that a file has been deleted it should close its tab, not just remove it from the sidebar.