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?
What does clear regular selections mean?
Cancelling a text selection by hitting escape. In vs code command terms I think it's editor.action.cancelSelectionAnchor
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.
@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)
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.
And yes, checklists ❤️ . We add them as we do mistakes.
Is there a way to truncate long lists or vectors when printed in the output-file window?
@agold, you can use pprint settings, but there is no per-eval way of doing it: https://calva.io/pprint/
Thanks!
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…
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
No that was the wrong tweet…
Yeah, please let me know about your setup.
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
@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?
No, I’m using the Remote-WSL extension, ver. 0.44.4.
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.
I'm using WSL2 + Remote-WSL with Calva, no problems so far
Everything "just works"