Fork me on GitHub
#cursive
<
2018-07-26
>
timgilbert15:07:24

Say, any particular reason the various REPL key shortcuts (load namespace etc) don't work in the REPL input window?

Schpaa08:07:37

Same experience, same question

onetom11:07:53

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

kanwei19:07:06

is there a way to make "case" statements align?

kanwei19:07:07

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

cfleming22:07:15

@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

😀 4
timgilbert22:07:32

Cool, that describes my issue well, yeah

timgilbert22:07:49

I wind up needing to use the mouse a lot when doing repl stuff

cfleming22:07:16

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

cfleming22:07:29

@timgilbert What do you use the mouse for?

timgilbert22:07:42

Switching from the repl window to the editor

cfleming22:07:17

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.

Schpaa08:07:42

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.

timgilbert22:07:25

(I guess there's a keyboard shortcut, but I've just replatformed to Windows and my shortcut muscle memory doesn't work anymore)

timgilbert22:07:54

I will probably do that as a workaround, yeah, thanks!

Schpaa08:07:42

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.