This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-06-22
Channels
- # announcements (3)
- # babashka (6)
- # beginners (29)
- # calva (10)
- # cider (14)
- # clj-kondo (67)
- # cljfx (6)
- # clojure (34)
- # clojure-australia (1)
- # clojure-europe (46)
- # clojure-italy (5)
- # clojure-nl (3)
- # clojure-spec (6)
- # clojure-uk (27)
- # clojured (1)
- # clojurescript (26)
- # conjure (14)
- # cursive (5)
- # data-science (1)
- # datomic (26)
- # deps-new (10)
- # editors (1)
- # events (2)
- # fulcro (23)
- # graalvm (41)
- # honeysql (5)
- # introduce-yourself (1)
- # jobs (1)
- # jobs-discuss (1)
- # luminus (2)
- # malli (22)
- # meander (5)
- # observability (3)
- # podcasts-discuss (1)
- # rdf (3)
- # re-frame (27)
- # remote-jobs (7)
- # reveal (6)
- # shadow-cljs (45)
- # xtdb (8)
hello
i can't seem to find the command that i found very interesting in calva.
Since calva is built on top of cider i assumed it would be there.
Calva has ctrl +alt + enter which in threaded expression does this (look at the image).
i haven't been able to find this for cider. Is there a command for this?
edit
is it C-c C-v z
?
yes it seems to be that!
let me ask u this. Why do i get same behavior with C-c C-v z cider-eval-defun-up-to-point
and command u suggested ?
If I'm not mistaken, the latter is more specific, operating only for functions, while the former is more generic and it should evaluate any form up to the point.
The defun up to point is interesting. I assume you’ll have to close all open brackets in order for it to evaluate, @U051BLM8F? (Yes, planning to steal this one too. 😃 )
Yep, the command appends the missing parens prior to sending this out to be evaluated.
I finally needed to implement the classic stack exercise of balancing parentheses for a practical purpose. 😄
For clarity about built from CIDER. That has two aspects to it. One is quite literally built on CIDER/Orchard infrastructure as I explain a bit in this presentation: https://www.youtube.com/watch?v=NIk5hVzA_fY The other is “heavily inspired from” which goes for a lot of the static services, to which the feature in OP, perhaps surprisingly, belongs. (Even if cider-nrepl
is used for carrying out the evaluation, grabbing the right things to evaluate is a static thing, for which Calva has its own infrastructure.