Fork me on GitHub
#calva
<
2018-10-05
>
pez13:10:11

I have released a new version of Calva Formatter. It has a command that formats the current (enclosing) form. Default key binding is tab, which might seem crazy, but together with Paredit it actually makes sense. πŸ˜€

pez13:10:50

So that made me release a new version of Calva as well. In which Calva Paredit is bundled.

pez13:10:20

Please try it out, @channel. If that key binding is too crazy I might have to change it.

dharrigan14:10:25

tab seem okay to me so far πŸ™‚

pez14:10:54

Thanks for helping me try it out!

pez14:10:07

I'm thinking that when things are already formatted, it might feel like the tab key is broken. At least if you are not aware about what it is bound to (which probably most people will be unaware about, I guess).

pez14:10:31

One other thing, @dharrigan. I had surprisingly hard struggles with getting the cursor to not jump around after reformat. I got some control of it. Do you think it is OK as it is, or should I fight with it some more?

dharrigan14:10:49

I haven't observed that (not been looking). Let me get back to you on that, after a bit more experimentation.

pez14:10:19

It was madness a while, and I was worried that I would have to abandon the whole idea. πŸ˜€

orestis15:10:09

Reminder that @pez should apply for Clojurists Together funding soon :)

pez17:10:15

I really should work more with plumbing in Calva than with features for Calva Formatter. But the latter is often more fun. It’s more Clojure and less Javascript, which probably has something to do with it. I just updated the Contribute page of Calva Formatter. You guys should try it. We can make a wishlist of things that people can pick from. There is everything from performance to cool features to chew on. πŸ˜„ https://github.com/BetterThanTomorrow/calva-fmt/wiki/How-to-Contribute

dijonkitchen20:10:27

Can you use CLJS for Calva?

pez22:10:22

Calva is partly made using CLJS. Very little of it so far, but the intention is to get most all logic down to CLJS and only keep integration things in TypeScript, just as with Calva Formatter.

pez17:10:12

I now notice that the tab key is also highjacked when the file is not a Clojure file. Not good, I thought I had tested that sufficiently, but apparently not. Looking at how to fix it now.

pez19:10:21

Hmmm, no, it seems to be only an artifact of my testing. Can someone help me confirm that the tab key is working as normal in non-clojure files, using latest Calva/Calva Formatter?

slack103819:10:49

for me it works normal in non-clojure files

dharrigan20:10:23

@pez how do you feel about small typo PRs?

dharrigan20:10:28

Do you need an issue created?