Fork me on GitHub
#calva
<
2023-03-14
>
cjmurphy10:03:29

I often want to go to the top of the currently opened file (not for adding requires, which I know doesn't need to be done manually). Is there a keyboard shortcut I haven't found?

pez10:03:02

On Mac this is cmd+up, same as in almost all applications. If you are not on Mac, I guess your OS has some standard way of doing this and that that will work in VS Code.

cjmurphy10:03:32

I'm on Linux, Pop!_OS. I can see now that this OS has stolen `cmd+up` for its own purposes. I'll steal it back. Thanks :slightly_smiling_face:

metal 2
ericdallo12:03:36

For Linux there is Home AFAIK that works

cjmurphy13:03:21

I'm used to using Ctl+Home and Ctl+End for going to the beginning and end of a file. I notice Calva has Ctl+End. And Ctl+Home does something - they go to the beginning and end of a list. So all I need to do is disable these Calva keybindings. I assume just need to edit the keybindings.json file - but couldn't find it. I can see the problem in settings (see picture). What I don't know now is how to remove the current keybinding for paredit.openList.

pez14:03:47

Right-click the entry and select Remove Keybinding.

cjmurphy14:03:06

Thanks, all good now. And Pop!_OS changes reversed (didn't work anyway - cmd+up probably not a possible Linux keybinding). I got transfixed by the edit icon, and hoped that just pressing ENTER (no key sequence before ENTER) would remove the keybinding.

jakebasile21:03:48

There's always Vim mode, which offers the gg motion to go to the top of the file 😈

2
Jakub Holý (HolyJak)17:03:58

Hi @pez! A question about the mention of calva.useLiveShare at https://calva.io/live-share/ Who is it who needs to enable this? Host, guest, or both? Thx!

pez17:03:36

I’ll let @UGNFXV1FA have a chance to help you first. He’s the expert.

Stefan17:03:23

I’m afraid I have given up on live share for now. It’s too much of a hassle to keep things working. Because of Calva insisting on opening files as notebooks (well, not entirely Calva’s fault, but still…) and because live share functionality is not consistently tested by Calva contributors. It’s all too easy to use vscode apis that only work locally, not remotely. Having said that, @U0522TWDA , both host and guest need to have the live share and Calva plug-ins installed. Host runs the REPL and shares it with guest. It should not matter if you start the sharing session first and then the REPL, or the other way around.

👍 2
Stefan17:03:45

If your question is who needs to have the setting enabled, I think probably both host and guest, but I’m not 100% sure (and AFK).

👍 2
pez23:03:49

To workaround the issue with Notebooks interfering with LiveShare I have now published a separate ”side car” extension, named https://marketplace.visualstudio.com/items?itemName=betterthantomorrow.calva-spritz (ChatGPT helped me name it). Spritz is bundled with Calva, so automatically installed when installing Calva. The important thing with this is that users can disable Calva Spritz when participating in LiveShare sessions, (Losing Notebook support, but you can disable Spritz temporarily, or just for workspaces where you often use LiveShare.) Please help test this. 🙏 ❤️ calva • PR: https://github.com/BetterThanTomorrow/calva/pull/2119 • Calva VSIX: https://output.circle-artifacts.com/output/job/49f69029-dfef-418d-aeb4-491d070eca75/artifacts/0/tmp/artifacts/calva-2.0.340-1850-spritz-liveshare-notebooks-workaround-1ee3b169.vsix

🎉 2
Jakub Holý (HolyJak)13:03:28

awesome! thanks a lot!

Jakub Holý (HolyJak)13:03:17

Is this included in the latest release (I have 3/18/2023, 09:52:06; I never know where to find extension version in Code) or do I need to install ti vsix?

2
Jakub Holý (HolyJak)13:03:39

Ah, it is included. Awesome!

pez14:03:07

About checking versions of Calva: Hover an extension in the extension pane to see its version. Click on the extension item to open a viewer. There you find a CHANGELOG tab. Calva also prints the version of itself and some major dependencies at startup in the Calva says output channel.

Jakub Holý (HolyJak)16:03:57

Silly me. Now of course I see the version where you’d expect it, in the details pane next to the name. I blame having used a small monitor where that part of the text is outside the screen space 🙂 Thank you!

😂 2
pez23:03:49

To workaround the issue with Notebooks interfering with LiveShare I have now published a separate ”side car” extension, named https://marketplace.visualstudio.com/items?itemName=betterthantomorrow.calva-spritz (ChatGPT helped me name it). Spritz is bundled with Calva, so automatically installed when installing Calva. The important thing with this is that users can disable Calva Spritz when participating in LiveShare sessions, (Losing Notebook support, but you can disable Spritz temporarily, or just for workspaces where you often use LiveShare.) Please help test this. 🙏 ❤️ calva • PR: https://github.com/BetterThanTomorrow/calva/pull/2119 • Calva VSIX: https://output.circle-artifacts.com/output/job/49f69029-dfef-418d-aeb4-491d070eca75/artifacts/0/tmp/artifacts/calva-2.0.340-1850-spritz-liveshare-notebooks-workaround-1ee3b169.vsix

🎉 2
pez14:03:07

About checking versions of Calva: Hover an extension in the extension pane to see its version. Click on the extension item to open a viewer. There you find a CHANGELOG tab. Calva also prints the version of itself and some major dependencies at startup in the Calva says output channel.