This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-07-26
Channels
- # aleph (1)
- # beginners (96)
- # boot (5)
- # cider (44)
- # cljdoc (11)
- # clojure (73)
- # clojure-conj (4)
- # clojure-dev (1)
- # clojure-finland (2)
- # clojure-italy (7)
- # clojure-new-zealand (1)
- # clojure-nl (3)
- # clojure-spec (4)
- # clojure-uk (66)
- # clojurescript (114)
- # code-reviews (16)
- # cursive (15)
- # datomic (37)
- # emacs (6)
- # events (2)
- # figwheel-main (12)
- # fulcro (36)
- # graphql (19)
- # hoplon (2)
- # hyperfiddle (3)
- # jobs (2)
- # leiningen (4)
- # off-topic (36)
- # om (1)
- # om-next (2)
- # other-languages (1)
- # re-frame (12)
- # reagent (12)
- # reitit (5)
- # remote-jobs (4)
- # ring (2)
- # shadow-cljs (218)
- # spacemacs (8)
- # specter (7)
- # sql (34)
- # tools-deps (9)
- # uncomplicate (6)
Say, any particular reason the various REPL key shortcuts (load namespace etc) don't work in the REPL input window?
which namespace would be loaded if you are not focused on a specific file? for example you can have multiple files visible if you split your editor area horizontally or vertically
(case tab
:settings (and (= "true" js/enterprise)
(= "admin" js/role))
:portal-logins (= "true" js/enterprise)
:settings-overview (= "true" js/enterprise)
:email-templates (and (= "true" js/enterprise)
@timgilbert So, sort of - the idea is that those keys mean “Load this namespace I’m in into the REPL”, and when you’re in the REPL editor you’re not in an editor pane representing a namespace. There’s an old issue about that, I’ll see if I can fix that soon: https://github.com/cursive-ide/cursive/issues/601
Cool, that describes my issue well, yeah
I wind up needing to use the mouse a lot when doing repl stuff
@kanwei No, there isn’t right now. I’ve thought about it but it’s hard to do without aligning all case
statements everywhere, and sometimes the target values are long and would look strange. It would probably work better for case
than for cond
though, since arbitrary conditions can be very long.
@timgilbert What do you use the mouse for?
Switching from the repl window to the editor
There are keyboard shortcuts for that. ESC will always take you from the REPL back to the editor, and there are actions you can bind to jump to the REPL editor or output pane.
Hm, never could get that to work the way I wanted. Sometimes I can press shift-esc to escape the REPL back to the editor but most often there is no reaction when esc or shift-esc.
(I guess there's a keyboard shortcut, but I've just replatformed to Windows and my shortcut muscle memory doesn't work anymore)
I will probably do that as a workaround, yeah, thanks!