<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="margin: 0px;"><div id="bloop_customfont" style="margin: 0px;">Quote <a href="https://github.com/bomberstudios/Save-On-Focus-Lost.tmbundle:">https://github.com/bomberstudios/Save-On-Focus-Lost.tmbundle:</a> </div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre"> </span>"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:</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">  </span> [ ui/**.php ]</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">   </span>  saveOnBlur = true</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre"> </span></div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">      </span>This would then only have .php files in the ui folder auto-save when focus is lost."</div></div> <div id="bloop_sign_1445620870644219904" class="bloop_sign"><div style="font-family:helvetica,arial;font-size:13px"><br></div><div style="font-family:helvetica,arial;font-size:13px"><br>Graham P Heath</div></div> <br><p class="airmail_on">On October 23, 2015 at 5:12:03 AM, Patrick Mast (<a href="mailto:patrick.mast@winfakt.com">patrick.mast@winfakt.com</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>Hello,<br><br>How can I set up “Save files when focus is lost” in Textmate2?<br><br>Thanks!<br><br>Patrick<br><br>_______________________________________________<br>textmate mailing list<br>textmate@lists.macromates.com<br>http://lists.macromates.com/listinfo/textmate</div></div></span></blockquote></body></html>