Fork me on GitHub
#calva
<
2019-12-03
>
marc-omorain10:12:34

How can I delete the red brace here?

marc-omorain10:12:45

(pressing backspace just jumps over it, leaving it in place)

marc-omorain10:12:50

aha, the same question as @qythium ๐Ÿ˜„ - did you find out how to delete it yuhan?

pez10:12:31

Haha, sorry. Just alt-backspace it. It is a bug that you must do that, though. I'd welcome an issue reported.

pez11:12:38

Thanks! Maybe it makes sense to add this to the strict mode?

filipematossilva11:12:16

I've ran into this in strict mode as well, and thought maybe I was just ignorant of how it should work

filipematossilva11:12:55

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

filipematossilva11:12:46

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

pez12:12:54

That you can't delete the unbalanced paren is a bug.

pez12:12:14

My question about strict mode was the other suggestions in the PR.

filipematossilva12:12:40

ah.. that I don't have an opinion about

scott.archer14:12:33

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 ๐Ÿ™‚.

pez14:12:16

Indeed, I changed the default once I had a better implementation. The old impl was way too erratic to serve as default.

pez14:12:01

@qythium, filed an issue on the repo which would take things a step further. I'll try to get some time to fix that.

pez15:12:07

I have some problems when paredit seems to be active outside clojure files. Anyone else seen that?

scott.archer15:12:27

Does Calva works with deps.edn projects instead of lein projects?

pez15:12:53

(I call them Clojure CLI projects in Calva.)

scott.archer15:12:35

Does it require a deps.edn file?

scott.archer15:12:10

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.

scott.archer15:12:18

(I'll read docs I honestly haven't looked yet)

pez15:12:24

Currently it requires a deps.edn file. Maybe it can be empty, I'm not sure w/o checking.

sasho.popov15:12:20

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).

pez15:12:53

Would that be prepending #_ to the enclosing form?

pez15:12:28

Where is the cursor when you want to disable the form?

pez15:12:36

Another solution would be that Calva automatically dropped the paren trail down on the next line when you type that ;, right?

pez15:12:51

(Just trying to understand the use case.)