<div dir="ltr"><div><div>Thanks Allan,</div><div><br></div><div>Looks interesting, I will have a play around with this when I can </div><div>I was hoping I might be able to call out to ImageMagick to generate a suitable ICNS icon, but from what I can see it doesn't support ICNS forma, which is a shame.</div><div><br></div><div>- Do 'marks' persist in any way, in projects or maybe tm settings? </div><div>Ie, if I was to pass a /tmp/some_temp_file.icns, would that cause an issue later if the /tmp file was later deleted and Tm relaunched?</div><div><br></div><div>- I wonder how feasible it would be for TM to allow a new switch in the mark API, something like...</div><div>"$TM_MATE" --set-mark-bg-color "#FF0000" --line 3<br></div><div><br></div><div>This would let us set the background color of the gutter, irrespective of the theme</div><div>And also allow it to be used independantly of the current monochrome marks feature. </div><div><br></div><div>Just a thought anyway, not sure how easy it would be </div><div><br></div><div>Thanks</div><div>Paul</div></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 24 May 2016 at 13:39, 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 24 May 2016, at 14:23, Fabian Zeindl wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Does it have to be a file or can it be base64 data as well?<br>
</blockquote>
<br></span>
You have to provide a path which serves as the identifier for the mark, for example from within TextMate you can press ⌃R on the following line:<br>
<br>
        "$TM_MATE" --set-mark "$TM_APP_PATH/Contents/Resources/TextMate.icns" --line 3<br>
<br>
This shows the TextMate app icon in the gutter’s third line. You can clear it again using:<br>
<br>
        "$TM_MATE" --clear-mark "$TM_APP_PATH/Contents/Resources/TextMate.icns" --line 3<br>
<br>
However, now that I just tested the above I realize that gutter marks are rendered as monochrome so that they match any theme.<br>
<br>
Though should anyone provide a proof-of-concept for this, I can help out adding support for setting color marks. Could base this simply on image naming conventions to avoid needing new API.<br>
<br>
The “difficult” part is scanning the current CSS file and generating image squares for all lines with color specifications, once we have that, it should not be a problem hooking it up to TextMate.<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></div>