onetom wrote:It's pretty sad if this is the intended behaviour.
You're entitled to your opinion. Software developers make decisions for various reasons, generally knowing they aren't going to be able to please everyone.
onetom wrote:I don't find it logical either when I delete a file from the side bar, the corresponding window stays open, but goes into unsaved state... I would think it's pretty clear I want the file to go away, still I'm asked if I want to "Save" it, meaning re-create. Why would I want that?
I agree with deleting a file. If I delete it, I want it to go away. But the file disappearing beneath the application without user intervention *in* the application is beyond the application's control. It seems logical and reasonable (to me anyway) that the only thing the application can do is keep the contents of the buffer. I would be pretty hacked off if the application made a decision such as "Well, the underlying file is no longer there. I don't know why, and I don't really care. Let's just trash the buffer as well." That is *not* what I want an editor to do.
onetom wrote:And please don't use git as a (good) example. That's most unintuitive piece of mainstream software on earth. I don't think the in-place branch switching it does is a good idea, exactly because of the mentioned side effects. See
http://darcs.net as an alternative way. It just leaves branching to regular file system manipulation tools, which everyone knows well...
This is not the appropriate forum for discussing how SCMs work.
onetom wrote:I would propose closing the orphaned buffers without questions, IF they are saved.
If they were not saved, warn about the disappearance of the actual file before saving AND also before closing.
Again, if the user initiated the action *through ST2* that caused the underlying file to disappear, I would agree that closing the buffer is a good idea. But if something happens outside the control of ST2, I don't want my buffers suddenly disappearing. Don't forget that you can put your idea up for vote over at UserEcho [1] and if enough people agree with you, it will bubble to the top and get Jon's attention.
[1]
http://sublimetext.userecho.com