editors

Discussion about all editors used for Clojure/ClojureScript
benedek 2015-06-26T13:58:25.001268Z

there is salvation for vim users https://github.com/Deraen/vim-cider

benedek 2015-06-26T13:58:47.001270Z

👏

denik 2015-06-26T15:59:56.001272Z

@cfleming: I saw someone using cursive to run tests after changes where made to the source code but could not find any further info. Ideas?

cfleming 2015-06-26T16:26:15.001273Z

@denik: The test integration is described here: https://cursiveclojure.com/userguide/testing.html, although it’s a little out of date

denik 2015-06-26T16:26:37.001275Z

@cfleming: saw that! no auto-test runner though

cfleming 2015-06-26T16:26:42.001276Z

@denik: There’s nothing like auto-test right now unfortunately

voxdolo 2015-06-26T16:27:25.001277Z

using cursive doesn't preclude running https://github.com/jakemcc/lein-test-refresh in the terminal window in the editor though :simple_smile:

cfleming 2015-06-26T16:27:45.001279Z

@denik: I’m planning to add that soon though - unfortunately lein …. what @voxdolo said :simple_smile:

denik 2015-06-26T16:27:53.001280Z

@cfleming: okay thanks for clarifying. I’m sure this is far down the pipeline, but are you planning/is it possible to show test failure/success icons next to the functions they were testing? Visual studio does that.

cfleming 2015-06-26T16:28:23.001281Z

@denik: Are you talking about NCrunch?

denik 2015-06-26T16:28:58.001282Z

@voxdolo: thanks, that’s what I’ve been using. These days that’s the only thing that brings me to the command line during development

denik 2015-06-26T16:29:30.001283Z

@cfleming: yes!

colin.yates 2015-06-26T16:30:10.001284Z

@voxdolo that works pretty well I find and has saved my back when my REPL has gotten a bit confused.

cfleming 2015-06-26T16:30:29.001285Z

@denik: Yeah, NCrunch is awesome - I’d love to do something like that in Cursive, I’ve actually been looking into that recently. I’m in contact with both the NCrunch developer and the wallaby.js one.

voxdolo 2015-06-26T16:30:55.001287Z

@denik you'll have to pry my command line from my cold, dead hands 😉 I do see an upside of an autotest runner that could be integrated into Cursive's diffing though.

cfleming 2015-06-26T16:31:09.001288Z

@denik: It’s probably a pretty serious piece of work, but I would love to have that myself

denik 2015-06-26T16:31:20.001289Z

@cfleming: it would be a gamechanger

voxdolo 2015-06-26T16:31:47.001290Z

I'm mostly editing in emacs these days, but I still run to Cursive for diffing and I keep lein test-refresh running in a terminal regardless.

cfleming 2015-06-26T16:32:45.001291Z

@denik: I agree.

gary 2015-06-26T16:48:02.001292Z

since lighttable is just a clojurescript application, I should be able to open up a clojurescript repl inside of lighttable to live edit lighttable right?

denik 2015-06-26T16:49:17.001293Z

thanks @voxdolo :simple_smile:

jballanc 2015-06-26T18:09:34.001294Z

Question for any Emacs/Spacemacs+smartparens users: how do you handle wrapping an element in [] or {}?

jballanc 2015-06-26T18:10:43.001295Z

In Vim+paredit it’s as simple as <leader>w[ or <leader>w{

akiva 2015-06-26T18:11:16.001297Z

It’s pretty much the same. I select a word/words and then hit s] or } or whatever.

smoke853 2015-06-26T18:11:29.001298Z

(sp-pair "[" "]" :wrap "M-[")
  (sp-pair "{" "}" :wrap "M-{")

jballanc 2015-06-26T18:11:51.001300Z

akiva: so that’s using spacemacs’ version of vim-surround, right?

akiva 2015-06-26T18:12:03.001301Z

Exactly.

jballanc 2015-06-26T18:12:27.001302Z

hmm…I guess that could probably work most of the time 😕

jballanc 2015-06-26T18:12:56.001303Z

still not quite as convenient since you need to either highlight or include a motion command

jballanc 2015-06-26T18:13:45.001304Z

smoke853: ah, I didn’t realize sp-pair worked like that…interesting