Fork me on GitHub
#calva
<
2019-05-07
>
claudiu07:05:00

Guessing calva is probably not there yet. But think it would be amazing to have something like https://youtu.be/buPPGxOnBnk?t=959 , there is scope capture that already has similar functionality https://github.com/vvvvalvalval/scope-capture

pez07:05:25

Yes, we want something like that, @saikyun has something similar to scope-capture and we hope to find some time to try get it into Calva in some neat way.

pez07:05:20

Dear channel: I have put some repro instructions on those blocking CLJS REPL issues into my nrepl test project: https://github.com/pez/nrepl-test Hopefully this will make it easier to try help me find out what is going on and going wrong.

pez07:05:21

^ @slipset @ibarrick @hoppy and hopefully others ^

claudiu08:05:21

is there any simple way to swap forms location. Ex: move (do z) first in if

(if x
  (do m)
  (do z))
?

claudiu08:05:37

in cursive I could just place cursor on ( of do m and ctrl+arrow down.

pez08:05:17

There are currently two ways to do that, depending on how you feel about the structure breaking temporarily. πŸ˜ƒ The structural way is to use paredit transpose and swap places of the (do m) and (do z) forms. The non-structural way is the vscode built-in command for moving lines up and down. That will leave the code broken, but there is rescue with the infer parens command (`ctrl+alt+p`), and structure will be restored.

pez08:05:23

On the todo is to modify the vscode move line commands to work structurally, but who knows when someone will find time for such todos.

claudiu09:05:10

cool πŸ™‚ Paredit transpose is what I was looking for (I'm using paredit, but still just basic skills). Tried the parinfer but did not work for my case, will play around with it some more πŸ˜„

claudiu09:05:13

Thank you πŸ™‚

pez09:05:58

If alt+up followed by ctrl+alt+p does not work for that case, something is broken. It is the case I created the infer parens command for.

pez09:05:14

But you are right, it doesn't. Quite crazy, I wonder when that broke!

claudiu10:05:01

ohh πŸ™‚ by the way, don't know when I will find time (but kinda interested in playing around with vscode + calva). If you would consider doing a screencast of you're dev setup and how you go about fixing issues like this maybe other people would find it helpfull also. (noticed the how to contribute has some nice info).

pez10:05:25

Good suggestion. I'll try to make some time for that!

claudiu10:05:29

awesome πŸ™‚ really curious about it. Know js & cljs, but never worked with TS

pez10:05:49

TS is new for me as well. From my perspective it sort of makes JS great again. πŸ˜ƒ

claudiu11:05:51

πŸ™‚ don't know. Last prototype rewrite of my personal project was in JS/react, after that got depressed for about 6 months. Don't think TS solves any of the problems I had (if anything it would added to them). Decided to learn clojurescript then and drop JS for good :))

pez11:05:02

Yeah, I should say it makes JS bearable, but would have lost the pun power then. πŸ˜ƒ

pez09:05:25

AND... I hadn't pushed the repro instructions. Now fixed. πŸ˜ƒ

pez09:05:56

(Re the nrepl-test link above. CC @vcastro70)

Jivago Alves12:05:21

Greetings folks! Is there a way to change indentation of a macro to be like let? For instance, instead of

(Describe "the body"
          :body)
I’d like the following
(Describe "the body"
  :body)
As you can see, :body would not be aligned with β€œthe body”. It would just be a two-whitespace indentation.

pez12:05:51

Welcome @jivagoalves ! This is not yet implemented.

claudiu13:05:27

is this something that should be implemented in calva-fmt ? I use fulcro for my projects the dom/p stuff looks really off if I can't do that https://bit.ly/2J7wh7a

pez13:05:07

Yes. It's on that todo list.

Jivago Alves16:05:19

@pez Thanks for clarifying. Please let me know how we can help with development.

pez17:05:50

@jivagoalves , thanks for asking! Check the wiki out for instructions on setting up the dev environment. I can help you find your way around the parts of the code where we would add support for custom clj-fmt configs.