Clojurians
#protorepl
<
2016-07-11
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

jasongilman00:07:24

@carocad: Proto REPL doesn't use the Atom Ink console but it would be an interesting experiment to try it. You could take a look at the Julia client to see how it's used https://github.com/JunoLab/atom-julia-client/blob/master/lib/runtime/console.coffee

jasongilman00:07:56

I have a feeling you might be thinking of putting the icon in the existing REPL output of Proto REPL. It would be useful to have an icon there next to specific lines to indicate if it's standard output or the results of execution, docs, etc.

jasongilman01:07:39

Every proto repl writes something to the REPL it does it using that method.

jasongilman01:07:51

You should be able to use the atom decorations API to add a class when text is appended. Each class would add an icon in the gutter. http://blog.atom.io/2014/07/24/decorations.html https://github.com/atom/decoration-example

jasongilman01:07:16

I think this comment should work to put icons in the gutter https://discuss.atom.io/t/icon-inside-gutter/19514/8

carocad11:07:23

@jasongilman: thanks for the detailed input. I have never programmed in coffescript so this might take a while :confused:. BTW, yes I was thinking about putting the icons on the REPL output of Proto-repl. Is there any specific reason why the repl is not modeled as an ink-console but as a special editor pane?

jasongilman13:07:19

@carocad The only reason is that I started it before I knew about Atom ink. I haven't evaluated whether the console would work well for Proto REPL or not.