When I have multiple repls; 1 and 2. Can I tell cider to send stuff from under /dir1/ to repl 1 and /dir2/ to repl 2? By default it seems to use the last active repl buffer.
If they're completely unrelated projects each eval should go to the right place
If there's some commonality (or if there's a bug in the commonality-seeking code), you can opt out of heuristics by setting sesman-use-friendly-sessions nil
1 modules/bar:localhost:52077 [*cider-repl %s(clj)*] linked-to proj(~/projects/dir/foo/modules/bar/)
2 dir/foo:localhost:60498 [*cider-repl %s(clj)*] linked-to proj(~/projects/dir/foo/)
One is a submodule of an other. We started with just a single process and are now gradually moving stuff into separate "modules"but just the word sesman gives me something to go on. was not aware that was a separate thing
I see, yeah if one is submodule of the other, I reckon that often any choice is valid by default
You have the sesman-link-with{buffer,dir,...} family of functions, they're often used to manually 'pin' repls to a buffer/dir
Although you may automate them somehow
nice! link-with works 👍 but not sure how to presist this. is it possible to name the sessions in .dir-locals or something? 🤔
(you don't have to figure this out for me btw. Looking deeper into emacs has been on my todo for years, this gives me a reason to do it 😄 )
I'd try to invoke link-with from cider-connected-hook, sth like that Happy hacking emacs-spin