Fork me on GitHub
#cursive
<
2016-02-29
>
manderson18:02:44

is there a shortcut for switching focus between the editor and repl windows?

mostr19:02:07

@manderson: was looking for the same recently and haven’t found anything except from Esc that switches back to editor from basically anywhere. To go the other direction Cmd+E and typing REPL is everything I found but it’s far from being perfect 😞

manderson19:02:02

thanks @mostr seems like it would be a pretty common case. that's why i checked here because I couldn't find anything with some quick googling.

rauh21:02:06

@manderson: On Ubuntu I use ALT+` (the key left to 1)

rauh21:02:01

IIRC Windows does this with F7, but no clue about MACs.

manderson21:02:10

@rauh: what keymap config are you using in intellij?

rauh21:02:27

@manderson: Visual studio. But I think the switching between app windows is done by the O/S. Same shortcut if I have multiple Chrome windows

manderson21:02:07

ah, gotcha. yeah, cmd + backtick actually switches between open intellij sessions, not windows within the actual app itself

manderson21:02:20

I'm on a mac

manderson21:02:51

maybe i'll dig more into that. thanks for the tip!

rauh21:02:46

Sure. I guess the OS tries to be smart if you have multiple IntelliJ open. I only have 1

manderson21:02:39

the chrome command to switch tabs for mac is cmd + option + arrow keys, but that doesn't work in intellij

cfleming21:02:41

The best solution for the REPL right now is to assign a Cmd/Alt-<number> key sequence to it like many of the built-in toolwindows have. Then that will jump to the REPL and ESC will jump back.

cfleming21:02:55

It’s not ideal sorry, a better solution is in the works.