<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; font-size: 13px; font-family: Helvetica, Arial; color: rgb(0, 0, 0);"><blockquote style="box-sizing: border-box; margin: 0px 0px 16px; padding: 0px 15px; color: rgb(119, 119, 119); border-left-width: 4px; border-left-style: solid; border-left-color: rgb(221, 221, 221); font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif; font-size: 16px; line-height: 25.6px; widows: 1;"><p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 16px;">You can now set <code style="box-sizing: border-box; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 13.6px; padding: 0.2em 0px; margin: 0px; border-radius: 3px; background-color: rgba(0, 0, 0, 0.0392157);">saveOnBlur</code> in <code style="box-sizing: border-box; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 13.6px; padding: 0.2em 0px; margin: 0px; border-radius: 3px; background-color: rgba(0, 0, 0, 0.0392157);">.tm_properties</code> 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 <code style="box-sizing: border-box; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 13.6px; padding: 0.2em 0px; margin: 0px; border-radius: 3px; background-color: rgba(0, 0, 0, 0.0392157);">callback.application.did-deactivate</code>, though incase of a save error, such command would bring up UI where saveOnBlur will ignore errors. Using<code style="box-sizing: border-box; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 13.6px; padding: 0.2em 0px; margin: 0px; border-radius: 3px; background-color: rgba(0, 0, 0, 0.0392157);">.tm_properties</code> also allows to easily target specific file types, for example one could use:</p><pre style="box-sizing: border-box; overflow: auto; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 13.6px; margin-top: 0px; margin-bottom: 16px; line-height: 1.45; padding: 16px; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-wrap: normal; background-color: rgb(247, 247, 247);"><code style="box-sizing: border-box; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 13.6px; padding: 0px; margin: 0px; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: normal; border: 0px; display: inline; line-height: inherit; word-wrap: normal; background-color: transparent; background-position: initial initial; background-repeat: initial initial;"> [ ui/**.php ]
saveOnBlur = true
</code></pre><p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 0px;">This would then only have .php files in the ui folder auto-save when focus is lost.</p><div><br></div></blockquote></div> Quote: <font face="Helvetica"><span style="font-size: 12px;"><a href="https://github.com/bomberstudios/Save-On-Focus-Lost.tmbundle">https://github.com/bomberstudios/Save-On-Focus-Lost.tmbundle</a></span></font><div><div><br> <div id="bloop_sign_1445620803317736192" class="bloop_sign"><div style="font-family:helvetica,arial;font-size:13px"><br></div><div style="font-family:helvetica,arial;font-size:13px">Thanks,</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></div></div></body></html>