[TxMt] Re: showing preview of css colors
Carpii UK
carpii.uk at gmail.com
Wed May 25 01:12:29 UTC 2016
Thanks Allan,
Looks interesting, I will have a play around with this when I can
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.
- Do 'marks' persist in any way, in projects or maybe tm settings?
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?
- I wonder how feasible it would be for TM to allow a new switch in the
mark API, something like...
"$TM_MATE" --set-mark-bg-color "#FF0000" --line 3
This would let us set the background color of the gutter, irrespective of
the theme
And also allow it to be used independantly of the current monochrome marks
feature.
Just a thought anyway, not sure how easy it would be
Thanks
Paul
On 24 May 2016 at 13:39, Allan Odgaard <mailinglist at textmate.org> wrote:
> On 24 May 2016, at 14:23, Fabian Zeindl wrote:
>
> Does it have to be a file or can it be base64 data as well?
>>
>
> 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:
>
> "$TM_MATE" --set-mark
> "$TM_APP_PATH/Contents/Resources/TextMate.icns" --line 3
>
> This shows the TextMate app icon in the gutter’s third line. You can clear
> it again using:
>
> "$TM_MATE" --clear-mark
> "$TM_APP_PATH/Contents/Resources/TextMate.icns" --line 3
>
> However, now that I just tested the above I realize that gutter marks are
> rendered as monochrome so that they match any theme.
>
> 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.
>
> 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.
>
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20160525/c14626fc/attachment-0001.html>
More information about the textmate
mailing list