This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-09-21
Channels
- # announcements (1)
- # bangalore-clj (1)
- # beginners (5)
- # calva (20)
- # cider (5)
- # clj-kondo (6)
- # clojure-czech (1)
- # clojure-dev (22)
- # clojure-hk (5)
- # clojure-norway (9)
- # clojure-switzerland (1)
- # clojure-uk (22)
- # clojurescript (7)
- # code-reviews (26)
- # cursive (1)
- # data-science (1)
- # datomic (1)
- # emacs (1)
- # fulcro (24)
- # off-topic (43)
- # om (1)
- # pathom (5)
- # pedestal (1)
- # re-frame (9)
- # reagent (1)
- # shadow-cljs (1)
- # spacemacs (7)
- # sql (4)
- # xtdb (8)
Dear Calva-friends, do you understand why Calva has a toggle for switching paredit on and off? It was like that already when I adopted the paredit extension, and I have never questioned it. But really, why would you want to toggle paredit on and off?
Asking so that I don’t remove the toggle and there were some good reason for it being there…
Maybe you can try to run with it on a while and we will find out if it makes a difference?
At least on Cursive I had to sometimes turn paredit off to be able to fix forms. That time I was new to Clojure and parediting didn’t allow me to do modify the code I wanted. Later I realized what the different editing modes are for. The option to turn it on/off would be beneficial for new Clojure programmers.
Another thing came into my mind: what if paredit-code contains a bug and it’s affecting the user. Then the user would need to wait for a Calva release to be productive again
Thanks for input! Let’s sort some things out. Calva Paredit will only interfere with your “normy” form editing, if you have enabled strict
keyboard settings. And even then Calva makes it super easy to override the most common culprit (being hindered from deleting a paren) by the pressing alt
when you delete. In any case, this strict
mode setting is not what I want to remove.
As for bugs hitting non-paredit users. Disabling the toggle would very unlikely have that effect. For two reasons: 1) Paredit commands are on demand. So if you use them you might be affected by bugs in them, but if you don’t, then not. 2) (Slightly contradicting the first reason) Paredit is used internally by Calva for many things. And then the toggle has no effect anyway.
The reason I’d like to remove the toggle is that I’d like to have fewer places where bugs can be introduced. Every setting introduces logic and maintenance. I try to keep Calva as free of settings as I can, partly to just be able to maintain it.