{"action":"created","issue":{"url":"https://api.github.com/repos/atom/tree-view/issues/525","labels_url":"https://api.github.com/repos/atom/tree-view/issues/525/labels{/name}","comments_url":"https://api.github.com/repos/atom/tree-view/issues/525/comments","events_url":"https://api.github.com/repos/atom/tree-view/issues/525/events","html_url":"https://github.com/atom/tree-view/pull/525","id":95866366,"number":525,"title":"Allow reordering project folders via drag and drop","user":{"login":"forivall","id":760204,"avatar_url":"https://avatars.githubusercontent.com/u/760204?v=3","gravatar_id":"","url":"https://api.github.com/users/forivall","html_url":"https://github.com/forivall","followers_url":"https://api.github.com/users/forivall/followers","following_url":"https://api.github.com/users/forivall/following{/other_user}","gists_url":"https://api.github.com/users/forivall/gists{/gist_id}","starred_url":"https://api.github.com/users/forivall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forivall/subscriptions","organizations_url":"https://api.github.com/users/forivall/orgs","repos_url":"https://api.github.com/users/forivall/repos","events_url":"https://api.github.com/users/forivall/events{/privacy}","received_events_url":"https://api.github.com/users/forivall/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/tree-view/labels/needs-review","name":"needs-review","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-18T23:02:17Z","updated_at":"2015-11-17T03:32:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/atom/tree-view/pulls/525","html_url":"https://github.com/atom/tree-view/pull/525","diff_url":"https://github.com/atom/tree-view/pull/525.diff","patch_url":"https://github.com/atom/tree-view/pull/525.patch"},"body":"This uses the same logic that moving tabs uses to reposition project folders within the tree view.\r\n\r\n![move-project-folders](http://i.imgur.com/bPgJOAh.gif)\r\n\r\n**NOTE:** Currently, this PR branch contains #565 -- #565 should be merged first, or I should rebase this and remove that merge.\r\n\r\n* [x] implement\r\n* [x] don't create horizontal scrolling when dragging (just watch the gif)\r\n* [x] add tests\r\n\r\nFuture additions:\r\n* reduce amount of duplicated code - needs coordination with tabs-view and drag-and-drop file moving\r\n* allow dragging in folders from the filesystem - needs electron support first, unfortunately. Or it's just broken in kwin."},"comment":{"url":"https://api.github.com/repos/atom/tree-view/issues/comments/157257579","html_url":"https://github.com/atom/tree-view/pull/525#issuecomment-157257579","issue_url":"https://api.github.com/repos/atom/tree-view/issues/525","id":157257579,"user":{"login":"forivall","id":760204,"avatar_url":"https://avatars.githubusercontent.com/u/760204?v=3","gravatar_id":"","url":"https://api.github.com/users/forivall","html_url":"https://github.com/forivall","followers_url":"https://api.github.com/users/forivall/followers","following_url":"https://api.github.com/users/forivall/following{/other_user}","gists_url":"https://api.github.com/users/forivall/gists{/gist_id}","starred_url":"https://api.github.com/users/forivall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forivall/subscriptions","organizations_url":"https://api.github.com/users/forivall/orgs","repos_url":"https://api.github.com/users/forivall/repos","events_url":"https://api.github.com/users/forivall/events{/privacy}","received_events_url":"https://api.github.com/users/forivall/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T03:32:45Z","updated_at":"2015-11-17T03:32:45Z","body":"@50Wliu Rebased. The other PR isn't 100% unrelated, but the fix is disjoint. :wink:"}}