{"action":"closed","issue":{"url":"https://api.github.com/repos/ensime/ensime-atom/issues/182","repository_url":"https://api.github.com/repos/ensime/ensime-atom","labels_url":"https://api.github.com/repos/ensime/ensime-atom/issues/182/labels{/name}","comments_url":"https://api.github.com/repos/ensime/ensime-atom/issues/182/comments","events_url":"https://api.github.com/repos/ensime/ensime-atom/issues/182/events","html_url":"https://github.com/ensime/ensime-atom/issues/182","id":135083308,"number":182,"title":"Apply patches manually to retain cursor and stuff","user":{"login":"hedefalk","id":116520,"avatar_url":"https://avatars.githubusercontent.com/u/116520?v=3","gravatar_id":"","url":"https://api.github.com/users/hedefalk","html_url":"https://github.com/hedefalk","followers_url":"https://api.github.com/users/hedefalk/followers","following_url":"https://api.github.com/users/hedefalk/following{/other_user}","gists_url":"https://api.github.com/users/hedefalk/gists{/gist_id}","starred_url":"https://api.github.com/users/hedefalk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hedefalk/subscriptions","organizations_url":"https://api.github.com/users/hedefalk/orgs","repos_url":"https://api.github.com/users/hedefalk/repos","events_url":"https://api.github.com/users/hedefalk/events{/privacy}","received_events_url":"https://api.github.com/users/hedefalk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ensime/ensime-atom/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"closed","locked":false,"assignee":{"login":"hedefalk","id":116520,"avatar_url":"https://avatars.githubusercontent.com/u/116520?v=3","gravatar_id":"","url":"https://api.github.com/users/hedefalk","html_url":"https://github.com/hedefalk","followers_url":"https://api.github.com/users/hedefalk/followers","following_url":"https://api.github.com/users/hedefalk/following{/other_user}","gists_url":"https://api.github.com/users/hedefalk/gists{/gist_id}","starred_url":"https://api.github.com/users/hedefalk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hedefalk/subscriptions","organizations_url":"https://api.github.com/users/hedefalk/orgs","repos_url":"https://api.github.com/users/hedefalk/repos","events_url":"https://api.github.com/users/hedefalk/events{/privacy}","received_events_url":"https://api.github.com/users/hedefalk/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-02-20T14:50:43Z","updated_at":"2016-02-26T07:54:00Z","closed_at":"2016-02-26T07:54:00Z","body":"Rewrite this:\r\nhttps://github.com/hedefalk/ensime-atom/blame/master/lib/features/refactorings.coffee#L34-L35\r\n\r\nto\r\n\r\n* read files from Atom, maybe fail if unsaved?\r\n* apply Patches more or less manually so that we can retain cursor positions\r\n\r\nWe can use the patch lib to parse unified patches and just iterate over those json structures to perform api level edits in texteditors within atom. That way everything should _just work_"}}