This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-11-23
Channels
- # admin-announcements (38)
- # announcements (1)
- # aws (1)
- # beginners (195)
- # boot (1)
- # business (3)
- # cider (100)
- # cljsrn (37)
- # clojure (99)
- # clojure-russia (69)
- # clojure-switzerland (1)
- # clojurescript (120)
- # datavis (26)
- # datomic (23)
- # devcards (4)
- # editors (38)
- # hoplon (18)
- # ldnclj (27)
- # lein-figwheel (28)
- # off-topic (50)
- # om (329)
- # onyx (255)
- # portland-or (1)
- # re-frame (8)
- # reagent (18)
- # spacemacs (5)
- # testing (1)
I think there's an opportunity to build editor agnostic refactoring/cider-nrepl plugins for clojurescript - I've been doing some stuff with neovim's node integration.
well both cider-nrepl and refactor-nrepl are editor agnostic. and they both have some cljs support
right, I mean that a clojurescript client library to the middleware that can be used in atom/light table/neovim should be possible - if our editor's plugins can give a refactoring library input text and handle the output text we'll be way ahead
Hey, possibly dumb question - does anyone know if there's a way in the Cursive repl to have it send the command I'm typing in even if the cursor isn't at the end of a line / s-expression?
@snoe I see what you mean. not sure how editor specific this client code needs to be tho
I’ve created #C0F4MB8AY where I intend to hang out while writing https://github.com/maitria/avi (avi is a vi written in Clojure).
@timgilbert: Can you give me an example of what you mean? i.e. an expression and where the caret would be?
@cfleming: So I've just typed (+ 1 2)
in the browser. My cursor is now between 2
and )
I want to just hit enter and have the form evaluated
@timgilbert: So you’re in the REPL editor, or the main editor?
But right now it inserts a newline between 2
and )
In the little one-line REPL window
I know I can hit ctrl-enter to evaluate the line
Er, yeah
I'd just like an option so I don't have to either hold a modifier key or get my cursor to EOL before I can get results
The thing is, that’s not actually a little one-line REPL window, you can drag it up to a multi-line editor
Yeah, I guess I just would like something that behaves a little more like a command-line repl. If I want a multi-line thing I'm more inclined to use the actual editor and send forms over that way
(I totally ge that this is a personal preference thing, BTW, I don't think my way is necessarily more correct)
You can actually re-bind the action, but I’m not sure if you can re-bind it to just Enter. Go to Settings->Keymap, and search for Execute Current Statement
You’ll see that’s bound to Ctrl-Enter if you’re on Win/Linux, you could try binding it to just Enter
I'm on os/x, but I'll give that a go
Oh, didn't see that, thanks
Hmm, well I was able to re-bind enter to that command and it seems to work fine, despite giving me some mildly scary warnings - thanks @cfleming!
About re-binding enter, was a little nervous that I'd need to figure out all the things it used to be bound to and re-bind them
...but I didn't, phew
No, in general you don’t have to worry about conflicts. Cursive will ensure that the Clojure-specific actions take precedence in Clojure contexts
Awesome. Thanks for the help!