This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-12-03
Channels
- # adventofcode (91)
- # announcements (7)
- # aws (3)
- # babashka (69)
- # beginners (46)
- # calva (30)
- # cider (12)
- # clj-kondo (88)
- # cljs-dev (11)
- # cljsrn (1)
- # clojure (195)
- # clojure-dev (21)
- # clojure-europe (2)
- # clojure-italy (13)
- # clojure-nl (56)
- # clojure-spec (4)
- # clojure-sweden (6)
- # clojure-uk (27)
- # clojurescript (179)
- # core-async (2)
- # cryogen (1)
- # cursive (2)
- # data-science (1)
- # datomic (57)
- # fulcro (15)
- # graalvm (9)
- # instaparse (6)
- # joker (18)
- # juxt (9)
- # leiningen (6)
- # off-topic (20)
- # other-languages (10)
- # pathom (5)
- # re-frame (20)
- # reitit (2)
- # rewrite-clj (5)
- # shadow-cljs (78)
- # sql (34)
- # tools-deps (128)
- # uncomplicate (16)
- # vim (6)
How can I delete the red brace here?
(pressing backspace just jumps over it, leaving it in place)
aha, the same question as @qythium 😄 - did you find out how to delete it yuhan?
Maybe @qythium read the docs? https://calva.readthedocs.io/en/latest/paredit.html#strict-mode 😃
Haha, sorry. Just alt-backspace
it. It is a bug that you must do that, though. I'd welcome an issue reported.
I've ran into this in strict mode as well, and thought maybe I was just ignorant of how it should work
it didn't make any sense to me it was skipping unbalanced delimiters though... as I was learning how to handle strict mode, this was the problem that most bit me
I'd forget to select a full sexp before deleting it, then tried to delete the leftover, and was always unsure of when it would work or not
ah.. that I don't have an opinion about
I guess the latest update defaults to structured editing or something. At first I was really frustrated, but then I felt like I had unlocked some dark magic once I understood how it works 🙂.
Indeed, I changed the default once I had a better implementation. The old impl was way too erratic to serve as default.
@qythium, filed an issue on the repo which would take things a step further. I'll try to get some time to fix that.
I have some problems when paredit seems to be active outside clojure files. Anyone else seen that?
I was working on the advent of code day 1 stuff and ended up using lein, then moving files over to work with just Clojure CLI.
I’d like to file a feature request, but I’m check first here whether this is already implemented or if there exists an issue for this. My feature request is a keyboard shortcut for prepending a form with #_
when I want to comment out the whole form. This comes in handy, when we have multiple closing brackets after a form that we want to comment out. Example:
(do
(inc 1)
(inc 2))
If I want to comment out (inc 2)
, I need to put the last bracket on a new line:
(do
(inc 1)
; (inc 2)
)
or I could use #_
:
(do
(inc 1)
#_(inc 2))
It’d be nice if there’s a shortcut for that (prepending #_
to a form).