Description
Right now our primitive algorithm that matches local project directories to nREPL connections is pretty limited. It works only for connections that were started using cider-jack-in
, because it maps a project dir to a connection at boot time. It also cannot handle very well situations when several projects are mapped to the same connection. All this makes it hard to work with several connections, as often you have to switch manually between them.
One way to improve this is to able to associate a project directory with any connection, using an interactive command, you can invoke at any time. That is simple solution that would solve the bigger part of this issue. In rare cases when some project is mapped to two connections we can opt to dispatch to the default connection (meaning business as usual). //cc @Malabarba