This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-29
Channels
- # adventofcode (11)
- # aws (2)
- # bangalore-clj (8)
- # beginners (92)
- # boot (2)
- # calva (26)
- # cider (1)
- # clj-kondo (4)
- # cljs-dev (4)
- # clojure (54)
- # clojure-berlin (5)
- # clojure-houston (6)
- # clojure-italy (12)
- # clojure-nl (7)
- # clojure-uk (39)
- # clojurescript (12)
- # clojutre (6)
- # cryogen (1)
- # cursive (15)
- # datomic (11)
- # duct (1)
- # events (5)
- # fulcro (14)
- # jackdaw (1)
- # joker (2)
- # malli (15)
- # mental-health (1)
- # off-topic (35)
- # reagent (2)
- # reitit (24)
- # rewrite-clj (3)
- # shadow-cljs (19)
- # vim (11)
New release candidate of the Paredit PR: https://2697-125431277-gh.circle-artifacts.com/0/tmp/artifacts/calva-2.0.62-wip-editor-using-our-paredit-199e15b0.vsix Please help test, if you can. It is stable afaict. Includes these changes since last Calva release:
* Fix: [Fix tokenization errors with quotes, derefs, etcetera](https://github.com/BetterThanTomorrow/calva/issues/467)
* Fix: [Fix glitch in current form highlight in the REPL window when cursor is to the right of a form](https://github.com/BetterThanTomorrow/calva/issues/472)
* Now using the same Paredit implementation for the Edit as for the REPL Window.
* A much more complete set of Paredit commands, and [all documented](https://calva.readthedocs.io/en/latest/paredit.html), in beautiful GIF animations.
* List based Paredit commands work on strings as well. (Limited by that strings don’t have sub lists/strings).
* Lots of fixes for Paredit commands.
* Fix: [Paredit not activated until focused moved from and back to the editor again](https://github.com/BetterThanTomorrow/calva/issues/454)
* Improving: [paredit paredit-kill
](https://github.com/BetterThanTomorrow/calva/issues/380)
* Fix: [paredit backspace
in strict mode](https://github.com/BetterThanTomorrow/calva/issues/379)
* Fix: [REPL window use it own set of paredit hotkeys and these are not configurable](https://github.com/BetterThanTomorrow/calva/issues/260)
Improvements for Commands using the Current form and Current top level form*:
* Fix: [Form selection fails on things like ’(1)](https://github.com/BetterThanTomorrow/calva/issues/418)
* Less precision needed for the right form to be selected.
All commands for this use the same implemengtion (so, you can use e.g. Select Current Form to know what Evaluate Current Form* will evaluate).
And here is the Paredit doc page that goes with that PR: https://github.com/BetterThanTomorrow/calva/blob/wip/editor-using-our-paredit/docs/readthedocs/source/paredit.md
Hi. is it possible to override this shortcut in the REPL window?
Alt+Enter Submit the current line
@dennisa, I can have a look at it. As it is right now, there is no way to override it, but I think I can make it a regular vscode shortcut. Since I have just fixed a ton of other repl window shortcut issues, this fits in my PR, I think.
Thanks! Yes, I am mostly using Cursive and keep giving Calva a go from time to time : ) In Cursive (and before this in Atom) I am used to Shift + Enter for evaluating in the repl window. In Calva it breaks up the line and it's driving me crazy : )
New RC Paredit. It's a change in how we lex symbols and keywords, closer to what the Clojure Reader allows. Needs testing. Simple test: Bring forward your weirdest code, macros and stuff and check that paredit works at the bottom of the files. Here's the VSIX: https://2721-125431277-gh.circle-artifacts.com/0/tmp/artifacts/calva-2.0.62-wip-editor-using-our-paredit-223c70e6.vsix
I'm trying to wrap my head around how I'd use these paredit keybindings
they look very useful, but also a bit onerous to learn
the really hard part is that I already have a bunch of similar keybinds for other stuff
so for someone that is also using other languages in vscode, what's the usage? is it that when I am using calva these keybinds override others?
do I have to turn the calva extension off on each workspace that I don't want these keybinds?
I already use slurp but did a rebind to something that didn't conflict with other bindings I have
(btw the visual guide is an absolute delight to read, even sent it to my non-clojurian friends :D)
I’d love some help with spreading the visual guide amongst Clojurians once it is available at the docs site.
Paredit keybindings are only active when you are editing a Clojure file or at the REPL window prompt. So shouldn’t conflict with keybindings outside that. Which keybinding will win if some other extension is binding the same keys, I think is undetermined.
In workspaces where you do not want the keybindings, set calva.paredit.defaultKeyMap
to none
. Maybe that should be mentioned in the guide…
@dennisa (and everyone else, actuatlly). In the latest Paredit PR build the keyboard shortcuts for submitting the prompt and entering a new line are configurable, via regular vscode shortcut settings. My smoke testing says it works, but please help me test it. VSIX here: https://2775-125431277-gh.circle-artifacts.com/0/tmp/artifacts/calva-2.0.62-wip-editor-using-our-paredit-0b78d0e9.vsix