<div dir="ltr">Thanks a lot Allan, <div>I'll try that approach. </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 12, 2013 at 12:00 PM, Allan Odgaard <span dir="ltr"><<a href="mailto:mailinglist@textmate.org" target="_blank">mailinglist@textmate.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 11 Aug 2013, at 19:02, Michele Pasin wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
[…] each time I send a command, the socket is obviously re-created; I<div class="im"><br>
wondered if I TextMate provides a mechanism to save the 'sock' binding in<br>
the current  environment - so that I can reuse it later within other<br>
commands.<br>
</div></blockquote>
<br>
Not per se, but TextMate does give you a TM_DOCUMENT_UUID and TM_PROJECT_UUID variable.<br>
<br>
The former is unique per document and the latter is unique per project (window).<br>
<br>
You can use these as keys into shared storage (such as files in TMPDIR) to store things that you wish to associate with a single document or project.<br>
<br>
Presently though there is no cleanup callback, so if you spawn a server process for a document or project, you should have it shutdown automatically if it hasn’t seen any activity for some amount of time.<br>
<br>
______________________________<u></u>_________________<br>
textmate mailing list<br>
<a href="mailto:textmate@lists.macromates.com" target="_blank">textmate@lists.macromates.com</a><br>
<a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/<u></u>listinfo/textmate</a></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><br></div><div><br></div><div>
<br></div><div><br></div><div><font size="1">--------------------------------</font></div><div><font size="1"><a href="http://www.michelepasin.org/" target="_blank">www.michelepasin.org/</a></font></div><div><br></div>
</div>