chlorine-clover

About Chlorine for Atom and Clover for VS Code: https://atom.io/packages/chlorine and https://marketplace.visualstudio.com/items?itemName=mauricioszabo.clover
mauricio.szabo 2020-01-04T03:49:43.025400Z

@jlmr Ok, I got your point. Indeed, Atom does not have registers, but it's kinda easy to simulate the behavior you want by using the info on "Extending Chlorine" part of documentation: https://github.com/mauricioszabo/atom-chlorine/blob/master/docs/extending.md

mauricio.szabo 2020-01-04T03:51:00.026800Z

You can define a new command to Atom that will save the current editor's selection (or block, top-block, there are commands that allow you to get these parts) to a simple JS variable. Then, you can issue a command to evaluate then

mauricio.szabo 2020-01-04T04:00:02.026900Z

Something like this. This example is in JS, you can convert to coffee if your init script is in coffeescript.

jlmr 2020-01-04T14:06:51.028800Z

@seancorfield, thanks! I already use comments as you describe them (good to know they have a name πŸ™‚). Was looking to take it one step further for fast iteration as @mauricio.szabo described. Will take a look at this solution as well!

2020-01-04T17:04:49.032Z

Hey all, slowly easing in to Clojure and Chlorine. Couple of basic things (comment form is great, so thanks πŸ™‚) - reloading of files. I guess it’s hard to do on automatically on each edit, so... manual reloading it is?

2020-01-04T17:06:32.034500Z

Next up, I’m starting to use doc-for-var more. Is there any way to get the output NOT inline? It might be obsessive but I’m constantly clearing the inline results. Getting them in a separate buffer would be neat. Ideas?

mauricio.szabo 2020-01-04T17:08:00.035400Z

There's support for auto-reload (with require or with the additional clojure.tools.namespace library) on save. I don't recommend it, to be honest, because it can lead to some inconsistent states

mauricio.szabo 2020-01-04T17:08:28.036Z

Also, there's currently no way to avoid the inline results. I could add an option to it, so it would render only on the console tab

2020-01-04T17:13:33.038300Z

Thanks for the quick reply πŸ˜„ The inline results are probably with thinking about, not sure what others think. But yeah... if it’s easy to allow an option to put it in the console I’m all for trying that out 😁

2020-01-04T17:14:18.039100Z

Is that the only way to get that information? I might be missing other ways of getting it?

mauricio.szabo 2020-01-04T17:19:27.039800Z

Today, it goes both to inline and the console tab, so you can just ignore the inline results πŸ˜„

2020-01-04T17:28:24.040400Z

Hah, I hadn’t noticed. Thanks πŸ‘