Fork me on GitHub
#calva
<
2019-11-02
>
phill19:11:40

Oops! I typed (not (bla bla bla)) then I deleted the word "not", now how do I get rid of the parens?

phill19:11:11

In Emacs I would position (|( and use M-S which the doc calls Split but in calva Split gives me () ((bla

borkdude19:11:01

is this parinfer? then you can do just backspace right?

pez19:11:42

Splice sexp, ctrl+alt+s

phill19:11:18

OH there is a big difference between s and S! In both Emacs and Calva. But I had somehow overlooked it in Emacs. Right-o! Thank you

pez19:11:20

And split does the right thing, right? You can do that as well, and then backspace, but it is more work than just splicing it.

pez19:11:40

case matters! 😃

borkdude19:11:10

I thought calva used parinfer?

borkdude19:11:20

Maybe that was Cursive 🙂

phill19:11:47

I gather Calva has both options, but I kept turning my work into porridge. Smart Mode sounded good, but right now the Parinfer page on VS Code Marketplace says "Development is currently paused..." to get the kinks out of Atom

pez19:11:29

I’d love to provide parinfer. But vscode doesn’t really lend itself to that.

pez19:11:02

Calva uses the parinfer librarary to provide a “healing” command, where it infers parens from indentation. So you can allow yourself some limited unstructured editing and then press ctrl+alt+p to “heal” the structure, as long as the indentation is still intact.

pez19:11:28

I like vscode’s Move line up/down commands. But with the lisp convention of collecting closing brackets at the end of the form, these commands can often break the structure. ctrl+alt+p to the rescue! But beware, sometimes it can wreck havoc somewhere far away in the code that you don’t notice.

pez19:11:29

Iirc @gerred uses these too. 😃

gerred19:11:30

i sure do 😄

pez19:11:10

News for Calva-friends: v2.0.56 is out. * Add setting for wether to open REPL Window on connect or not * Re-open REPL windows where they were last closed * Lexer performance considerably improved. * REPL colours and logo a bit toned down * Removed useWSL configuration option because the use of Calva is fully supported through the Remote - WSL extension.

pez19:11:43

As usual we have @c.fehse to thank for the improvements!

borkdude19:11:57

congrats on the new release