Fork me on GitHub
#cursive
<
2020-04-21
>
Ben Hammond20:04:25

I've got a little bugbear I'd like to get off my chest... I eliminate code by commenting it out using #_ then I subsequently delete it using (my key binding for)

StructuralEditing - Kill Sexp
only... that doesn't just kill the thing that I commented out it also kills the first thing after it that is not commented out that I want to keep

Ben Hammond20:04:32

If Kill Sexp considered a reader-macro comment to be worth killing on its own without the need to kill further Then Cursive would be an even better tool

Ben Hammond20:04:47

Dunno, is that just me?

cfleming22:04:10

I’m not sure, no-one else has reported that. Let me think about the implications of considering a reader-macro a form.

Ben Hammond19:04:53

perhaps I just need to pick up some better habits when identifying/stripping out used code though

onetom03:04:41

I only use ^K, Structural Editing / Kill, since it also cares about the expression boundaries. I typically have 1 expression per line, so it works well. If I would want to just delete next form, I would Alt-Up, then Backspace / Delete or just start typing...

favila22:04:56

my leinigen tool is gone, and right-clicking project.clj files doesn’t show an “import project” option anymore. Halp?

favila22:04:17

nm, you can open the project.clj file itself and it will offer to “add project” at the top of the file

antonmos22:04:52

i dont remember seeing that before… do you have “refresh leiningen projects”?

favila22:04:16

no, everything was gone. I always remember this stuff being there even when there was no lein module in the current project, but maybe that changed?

favila22:04:24

anyway, I found a workaround

cfleming03:04:39

The Leiningen toolwindow now only appears when you have a lein project registered, but the right-clicking a project.clj file should work always - I’ll check that.