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`.
Alex J Henderson 2020-08-27T09:58:05.097200Z

Hi Folks, I've written a small extension for calva that I find invaluable. It closes any open parenthesis bracket and removes any whitespace around the cursor. https://github.com/jahenderson777/remove-whitespace-close-paren In other Clojure IDEs I notice that when you hit ']' the cursor will move to the closing paren/bracket whether it be a ']', '}', or ')'. However in Calva I notice that you have to match the type of bracket (e.g. to close a round parenthesis '(' you have to hit ')').

pez 2020-08-28T07:50:01.098600Z

Yes, Calva comes with default settings for Cloiure that auto-closes brackets. And Calva Paredit helps you retain the balance. Hitting tab cleans away most whitespace around the cursor (trying to not remove the whitespace you’ve put there on purpose).

Alex J Henderson 2020-09-01T09:41:44.105700Z

well I suppose tab does remove whitespace. Regarding the brackets: maybe it's my settings, but if I hit ']' to close a round brace it will insert an erroneous ']', if there's a way to make it behave like other editors (cursive/emacs) I'd love to know

pez 2020-09-15T10:26:43.246700Z

Sorry for late reply. Regarding the insertion of an errornous closing bracket, I’d say that that should be fixed. It is quite annoying, even if I have become used to hitting alt+backspace when it happens to me.

bringe 2020-09-15T16:12:50.247Z

An issue would be great to track this

bringe 2020-08-27T16:57:02.097700Z

Very cool that you wrote this, but I think I may be missing the point? Calva automatically adds closing parents, braces, and brackets when you type an opening one, and with paredit strict mode on (default), I can't easily accidentally delete a closer and throw things off balance. Maybe you are using Calva in some way that's not standard/default?