[TxMt] Re: How to set up "Save files when focus is lost"

Graham P Heath graham.p.heath at gmail.com
Fri Oct 23 17:40:45 UTC 2015


You can now set saveOnBlur in .tm_properties to make TextMate save files when focus is lost. Previously the recommended way was to create a command set to “Save Modified Files” with a semantic class of callback.application.did-deactivate, though incase of a save error, such command would bring up UI where saveOnBlur will ignore errors. Using.tm_properties also allows to easily target specific file types, for example one could use:

 [ ui/**.php ]
 saveOnBlur = true
This would then only have .php files in the ui folder auto-save when focus is lost.

Quote: https://github.com/bomberstudios/Save-On-Focus-Lost.tmbundle


Thanks,

Graham P Heath

On October 23, 2015 at 5:12:03 AM, Patrick Mast (patrick.mast at winfakt.com) wrote:

Hello,

How can I set up “Save files when focus is lost” in Textmate2?

Thanks!

Patrick

_______________________________________________
textmate mailing list
textmate at lists.macromates.com
http://lists.macromates.com/listinfo/textmate
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20151023/c0eba6ec/attachment.html>


More information about the textmate mailing list