Fork me on GitHub
#calva
<
2019-10-04
>
pez04:10:18

@raf , there is a PR cooking adding that.

raf05:10:56

@pez great to hear that! - thanks!

cfehse08:10:46

@pez @raf Perhaps I get some more testing done today. So we can integrate this feature soon. gg

👍 2
Sasho11:10:28

Hey all, just dropping by quickly to propose a feature -> a shortcut to clear the current repl buffer. For example, today I had written a failing test, then decided I don’t need the test anymore and deleted it. However, even after evaluating the whole test namespace, the test was still failing (as it was already defined in the repl). I had to restart Calva. It would be nice if there was a shortcut, which would allow one to have “clean slate” (I think Cider has something like that).

pez11:10:23

@sasho.popov: Tried Calva: Refresh?

pez11:10:39

(Not sure I understand the problem, so just throwing that out 😄 )

Sasho12:10:15

O.K., great! Learning something new every day 🙂

Sasho12:10:17

Thank you

pez12:10:10

Where on the wiki should we document all these secret Calva commands?

bringe14:10:26

I don't know when the comment forms changed from being dim-lit to italicized, but I like it!

metal 1
pez16:10:53

It changed in the last update, where Calva took responsibility for what was previously provided by Clojure Warrior. When I added the comment styling to CW, I wanted comments to default to italics and ignored forms (`#_`) to be dimmed, but Tonsky wanted them to be styled the same way. Now, it is my call. 😃 In any case, this is entirely configurable.

pez16:10:41

You can go quite crazy with the styling, if you like. 😃

😯 1
👍 1
dominicm16:10:41

Straight out of a movie

pez18:10:49

It would be extra cool to be able to animate it, but we can’t get everything we want, obviously. 😃

pez18:10:47

A thing to keep in mind when editing the style here is that VS Code uses a white-list of what attributes it allows to be used. And you need to use camelCase which will get changed to the kebab-case required by CSS. In the example I posted above I have cheated and snuck the text-shadow past the white-list like so:

"calva.highlight.commentFormStyle": {
        "fontStyle": "italic; text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px #fff, 0 0 40px #0ff, 0 0 80px #0ff, 0 0 90px #0ff, 0 0 100px #0ff, 0 0 150px #0ff;"
    }

pez19:10:23

Dear Calva-friends: Long ago I started to work on a feature that would let you configure and run custom REPL commands. It’s well over time that that feature is released. Please help with this by testing the VSIX package found here: https://github.com/BetterThanTomorrow/calva/issues/281#issuecomment-538532927