Is there a way to 'pin' the target REPL for commands like 'Send <form> to REPL', 'Load file in REPL', and 'Switch REPL NS to current file'? I could have sworn I did it accidentally a few months back, and then it was very hard to 'unstick' it when I wanted to switch to sending output to the other REPL (I was hoping it would just be on the 3 dots menu for the REPL on the title bar or something. I seem to recall it was buried deep in option menus somewhere). But now I'm trying to find that option again because it's getting very annoying when I have multiple REPLs open and a scratch file of commands I want to run against one (or just an ns I am working in), and I have to select the correct target REPL every time. And I can't find it anywhere. I wonder if maybe I've checked a box for 'never ask me this again' in a menu somewhere and now I can't find it.
You can do this using the REPL widget in the status bar at the bottom of the editor. https://github.com/cursive-ide/cursive/issues/3008 fixes some things which made that unintuitive, that change will be in the next EAP, hopefully today.
Ahha! Did that also have some other changes since its introduction? I've been playing with it a bit and it's already much easier to work with than I remember 🙂 I think I previously went to All, chose a REPL scope, and then all the options in there disappeared so I couldn't change that target scope without going into settings. Now I can still change it on that menu
Also, once I've expanded some REPL output inline, is there any way to collapse it back again?
Just hit Escape.
If you current have the expansion selected, i.e. you're navigating through the expanded tree, then that will just close the expansion. If you don't have it selected, i.e. your caret is in normal text, then Escape will dismiss all the inline results.
Aah, heh. I don't think I've ever had it selected when I wanted to collapse it. That was my issue facepalm Ta!