{"action":"created","issue":{"url":"https://api.github.com/repos/clojure-emacs/cider/issues/1217","labels_url":"https://api.github.com/repos/clojure-emacs/cider/issues/1217/labels{/name}","comments_url":"https://api.github.com/repos/clojure-emacs/cider/issues/1217/comments","events_url":"https://api.github.com/repos/clojure-emacs/cider/issues/1217/events","html_url":"https://github.com/clojure-emacs/cider/issues/1217","id":95900944,"number":1217,"title":"Make it possible to associate a project folder with any connection","user":{"login":"bbatsov","id":103882,"avatar_url":"https://avatars.githubusercontent.com/u/103882?v=3","gravatar_id":"","url":"https://api.github.com/users/bbatsov","html_url":"https://github.com/bbatsov","followers_url":"https://api.github.com/users/bbatsov/followers","following_url":"https://api.github.com/users/bbatsov/following{/other_user}","gists_url":"https://api.github.com/users/bbatsov/gists{/gist_id}","starred_url":"https://api.github.com/users/bbatsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbatsov/subscriptions","organizations_url":"https://api.github.com/users/bbatsov/orgs","repos_url":"https://api.github.com/users/bbatsov/repos","events_url":"https://api.github.com/users/bbatsov/events{/privacy}","received_events_url":"https://api.github.com/users/bbatsov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/clojure-emacs/cider/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/clojure-emacs/cider/labels/low%20hanging%20fruit","name":"low hanging fruit","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-19T09:22:24Z","updated_at":"2015-10-11T08:41:38Z","closed_at":"2015-10-11T08:41:38Z","body":"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.\r\n\r\nOne 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"},"comment":{"url":"https://api.github.com/repos/clojure-emacs/cider/issues/comments/147172522","html_url":"https://github.com/clojure-emacs/cider/issues/1217#issuecomment-147172522","issue_url":"https://api.github.com/repos/clojure-emacs/cider/issues/1217","id":147172522,"user":{"login":"bbatsov","id":103882,"avatar_url":"https://avatars.githubusercontent.com/u/103882?v=3","gravatar_id":"","url":"https://api.github.com/users/bbatsov","html_url":"https://github.com/bbatsov","followers_url":"https://api.github.com/users/bbatsov/followers","following_url":"https://api.github.com/users/bbatsov/following{/other_user}","gists_url":"https://api.github.com/users/bbatsov/gists{/gist_id}","starred_url":"https://api.github.com/users/bbatsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbatsov/subscriptions","organizations_url":"https://api.github.com/users/bbatsov/orgs","repos_url":"https://api.github.com/users/bbatsov/repos","events_url":"https://api.github.com/users/bbatsov/events{/privacy}","received_events_url":"https://api.github.com/users/bbatsov/received_events","type":"User","site_admin":false},"created_at":"2015-10-11T08:41:38Z","updated_at":"2015-10-11T08:41:38Z","body":"I think this works more or less well in it's present form, so I'll close this issue."}}