JunoLab / atom-ink

IDE toolkit for Atom
MIT License
228 stars 40 forks source link

Multiple results in the same line #60

Open mauricioszabo opened 8 years ago

mauricioszabo commented 8 years ago

Hello, I'm trying to write a package to integrate with proto-repl. One of the things I want to do is something like LightTable's watch expressions.

Problem is, Ink right now only supports a single inline result per line. I can work-around this, creating an hierarchical structure, in a single result, but will Ink support multi-line results?

MikeInnes commented 8 years ago

This is definitely a problem which we need to solve. Aside from things like watches we also have to think about things like debugger uis, lint warnings, profiling annotations and so on.

At the moment I think the solution will be to wrap Atom's editor overlays with some kind of LineAnnotation type, which will have a priority setting (for ordering, like the status bar) and will organise itself so as not to overlap with other LineAnnotations on the same line. That'll also help with the amount of code sharing between the components mentioned above, which is currently suboptimal.