calva

Wednesdays you might find @U0ETXRFEW in the Gather Calva space. Invite is https://gather.town/invite?token=GZqrm7CR and the password is `Be kind`.
Cris B 2020-08-10T03:23:03.183800Z

I don't like the way calva's 'clear inline evaluation results' default keyboard shortcut overrides the use of ESC to cancel regular selections (the latter is burned into my muscle memory). I wasn't able to find a keyboard shortcut 'when' clause to distinguish the two, so for now I've just changed the calva one. Ideally though I'd like to use ESC for both. Does anyone know a way to do this?

pez 2020-08-10T04:37:49.184600Z

What does clear regular selections mean?

Cris B 2020-08-10T04:53:02.185700Z

Cancelling a text selection by hitting escape. In vs code command terms I think it's editor.action.cancelSelectionAnchor

pez 2020-08-10T05:14:17.187300Z

I see. I only use it with multiple cursors. For a single selection my muscle memory tells me to use the left/right keys. In any case, this needs to be solved in Calva, I think. It's pretty easy, I also think. Please file an issue about it.

1
Cris B 2020-08-11T03:46:28.200400Z

@pez - see PR - https://github.com/BetterThanTomorrow/calva/pull/741. Hopefully I've followed your guidelines (checklists are deffo handy!). PIng me if I've done anything egregiously out of place. (Seems like a PR for this is probably more work for you than just editing the package.json yourself, but I assume you're trying to promote contributions)

pez 2020-08-11T06:14:16.203200Z

Awesome. Yes, I like that contributor count on the repo. 😃 And it is hard to realise how easy it is to hack on Calva w/o giving it a shot.

pez 2020-08-11T06:14:49.203400Z

And yes, checklists ❤️ . We add them as we do mistakes.

1
agold 2020-08-10T14:00:50.188500Z

Is there a way to truncate long lists or vectors when printed in the output-file window?

pez 2020-08-10T14:50:43.189900Z

@agold, you can use pprint settings, but there is no per-eval way of doing it: https://calva.io/pprint/

agold 2020-08-10T14:52:48.190200Z

Thanks!

pez 2020-08-10T15:03:39.191800Z

There is a pprint toggle button to the right of the status bar. And a command with a shortcut for it. Maybe we should consider making it a cycle through a list of settings…

pez 2020-08-10T15:09:59.193Z

Anyone has experience with WSL2 and Calva? Calva can get some nice PR from @borkdude if the WSL2 story is good. https://twitter.com/unixterminal/status/1292834002165006338

pez 2020-08-10T15:10:21.193500Z

No that was the wrong tweet…

borkdude 2020-08-10T15:10:54.194Z

Yeah, please let me know about your setup.

agold 2020-08-10T15:20:10.195700Z

I’m using Calva on WSL2. No problems with Calva per se. My only problem was connecting to the shadow-cljs server owing to networking changes between WSL1 and WSL2. Solution was to apply the script in WSL2 issue #4150: https://github.com/microsoft/WSL/issues/4150

❤️ 1
borkdude 2020-08-10T17:12:01.197100Z

@agold I've also used this script: https://github.com/microsoft/WSL/issues/4150#issuecomment-504209723 for forwarding SSH, nREPL, etc, etc. so I can connect even from other machines. May I ask if you're editing the files in VSCode via the WSL network share?

agold 2020-08-10T18:01:38.197900Z

No, I’m using the Remote-WSL extension, ver. 0.44.4.

agold 2020-08-10T18:02:59.199200Z

Remote-WSL allowed me to edit files in WSL2 even before I discovered the networking workaround. There were no networking problems with WSL1, by the way, but WSL2 is faster and makes it easier to work with Docker.

mloughlin 2020-08-10T19:09:41.199700Z

I'm using WSL2 + Remote-WSL with Calva, no problems so far

mloughlin 2020-08-10T19:14:02.200Z

Everything "just works"

🤘 1