<div dir="ltr">So awesome, thanks Allan.</div><div class="gmail_extra"><br><div class="gmail_quote">On 2 June 2016 at 17:27, 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"><span class="">On 2 Jun 2016, at 9:45, George McGinley Smith wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have a command that's working, but it's slow – the method for clearing<br>
marks is definitely a bottleneck. So, yeah, it needs something simpler to<br>
clear all the marks and probably some feedback on improving the speed (I'm<br>
not a ruby dev). Also, clearing without the line number seems to clear the<br>
marks for all open docs every time, rather than just the one you're looking<br>
at.<br>
</blockquote>
<br></span>
For the latter, specify the document e.g. via `--uuid="$TM_DOCUMENT_UUID"`.<br>
<br>
For the former, I added support for this in beta 9.4 which is available by holding option down and clicking Check Now in Preferences → Software Update.<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Perhaps saving a copy of the current files marks to a temp file would<br>
help, then you could read that in and remove them all.<br>
</blockquote>
<br></span>
I collected all the calls to `mate` into a single call in this version, that way, there should be practically no flicker for the colored squares:<br>
<br>
<a href="https://gist.github.com/sorbits/69e77ecd69efed2251be3d9bf1f1864e" rel="noreferrer" target="_blank">https://gist.github.com/sorbits/69e77ecd69efed2251be3d9bf1f1864e</a><br>
<br>
Also use `shellescape` method instead of single quotes and create cache folder if it does not exist.<div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<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" rel="noreferrer" target="_blank">http://lists.macromates.com/listinfo/textmate</a></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Kind regards,</div><div>George.</div><div><br></div><a href="http://gsgd.co.uk" target="_blank">http://gsgd.co.uk</a></div></div>
</div>