Having Textmate warn me when writing to a file that was modified since Textmate last read it

Posted by emm on Super User See other posts from Super User or by emm
Published on 2009-12-01T17:13:08Z Indexed on 2010/04/03 5:03 UTC
Read the original article Hit count: 291

Filed under:
|

Scenario:

I open a file, I edit it. After I began editing, the file is modified by another program. Finally, I save the file.

In that case, Vim would provide that helpful warning:

WARNING: The file has been changed since reading it

Do you really want to write to it (y/n)?

But Textmate will overwrite the file silently, which can result in unpleasant data loss (in my case, a de facto revert on Git). How can I prevent that?

© Super User or respective owner

Related posts about textmate

Related posts about osx