@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!
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?
I'd strongly encourage getting into a workflow where you edit, eval block, edit, eval block, sprinkled with eval'ing test forms, so your feedback loop is super tight -- and you don't need to save files (or reload them) while you are iterating on small changes. I often work for five, ten minutes without saving, but I eval every single edit I make, and I eval test forms (in RCFs) regularly to validate my changes. I only save files when I'm "done" which each small group of changes.
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?
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
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
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 π
I love having the docstrings render inline. I keep the console minimized to just a few lines at the bottom of my screen while working and only use it to look at exception details if my code does something "bad".
Is that the only way to get that information? I might be missing other ways of getting it?
Today, it goes both to inline and the console tab, so you can just ignore the inline results π
Hah, I hadnβt noticed. Thanks π
@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
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
Something like this. This example is in JS, you can convert to coffee if your init script is in coffeescript.