{"action":"created","issue":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/2372","labels_url":"https://api.github.com/repos/spyder-ide/spyder/issues/2372/labels{/name}","comments_url":"https://api.github.com/repos/spyder-ide/spyder/issues/2372/comments","events_url":"https://api.github.com/repos/spyder-ide/spyder/issues/2372/events","html_url":"https://github.com/spyder-ide/spyder/pull/2372","id":71278385,"number":2372,"title":"[WIP] Add support for editor tab reordering","user":{"login":"goanpeca","id":3627835,"avatar_url":"https://avatars.githubusercontent.com/u/3627835?v=3","gravatar_id":"","url":"https://api.github.com/users/goanpeca","html_url":"https://github.com/goanpeca","followers_url":"https://api.github.com/users/goanpeca/followers","following_url":"https://api.github.com/users/goanpeca/following{/other_user}","gists_url":"https://api.github.com/users/goanpeca/gists{/gist_id}","starred_url":"https://api.github.com/users/goanpeca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goanpeca/subscriptions","organizations_url":"https://api.github.com/users/goanpeca/orgs","repos_url":"https://api.github.com/users/goanpeca/repos","events_url":"https://api.github.com/users/goanpeca/events{/privacy}","received_events_url":"https://api.github.com/users/goanpeca/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/Editor","name":"Editor","color":"d4c5f9"},{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/UI","name":"UI","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"goanpeca","id":3627835,"avatar_url":"https://avatars.githubusercontent.com/u/3627835?v=3","gravatar_id":"","url":"https://api.github.com/users/goanpeca","html_url":"https://github.com/goanpeca","followers_url":"https://api.github.com/users/goanpeca/followers","following_url":"https://api.github.com/users/goanpeca/following{/other_user}","gists_url":"https://api.github.com/users/goanpeca/gists{/gist_id}","starred_url":"https://api.github.com/users/goanpeca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goanpeca/subscriptions","organizations_url":"https://api.github.com/users/goanpeca/orgs","repos_url":"https://api.github.com/users/goanpeca/repos","events_url":"https://api.github.com/users/goanpeca/events{/privacy}","received_events_url":"https://api.github.com/users/goanpeca/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/spyder-ide/spyder/milestones/5","html_url":"https://github.com/spyder-ide/spyder/milestones/v3.0","labels_url":"https://api.github.com/repos/spyder-ide/spyder/milestones/5/labels","id":982077,"number":5,"title":"v3.0","description":"","creator":{"login":"spyder-issues-migrator","id":11021581,"avatar_url":"https://avatars.githubusercontent.com/u/11021581?v=3","gravatar_id":"","url":"https://api.github.com/users/spyder-issues-migrator","html_url":"https://github.com/spyder-issues-migrator","followers_url":"https://api.github.com/users/spyder-issues-migrator/followers","following_url":"https://api.github.com/users/spyder-issues-migrator/following{/other_user}","gists_url":"https://api.github.com/users/spyder-issues-migrator/gists{/gist_id}","starred_url":"https://api.github.com/users/spyder-issues-migrator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spyder-issues-migrator/subscriptions","organizations_url":"https://api.github.com/users/spyder-issues-migrator/orgs","repos_url":"https://api.github.com/users/spyder-issues-migrator/repos","events_url":"https://api.github.com/users/spyder-issues-migrator/events{/privacy}","received_events_url":"https://api.github.com/users/spyder-issues-migrator/received_events","type":"User","site_admin":false},"open_issues":263,"closed_issues":62,"state":"open","created_at":"2015-02-16T23:17:23Z","updated_at":"2015-04-27T16:23:24Z","due_on":null,"closed_at":null},"comments":10,"created_at":"2015-04-27T13:07:49Z","updated_at":"2015-04-27T18:35:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/spyder-ide/spyder/pulls/2372","html_url":"https://github.com/spyder-ide/spyder/pull/2372","diff_url":"https://github.com/spyder-ide/spyder/pull/2372.diff","patch_url":"https://github.com/spyder-ide/spyder/pull/2372.patch"},"body":"Fixes #564\r\n\r\n---\r\n\r\n## Description\r\nAny reordering event will reorder ALL editorstacks opened, so everything remains in sync. Since the editor was sorting by default, I disabled all instances were this was happenning, now we need to discuss what other options should we offer, including sorting and also extra ones (Delete tabs to the right, to the left, delete all tabs except this etc...)\r\n\r\nMy idea is that new files should be opened in the order of opening (what happens now with this PR) and if the user wants to order them by some measure, it should be an active action from the user in the context menu.\r\n\r\nThe [video](http://youtu.be/tbjJ-uM61P0)\r\n\r\n## Todo\r\n- [x] Make tabs moving dynamic (move tabs while dragging)\r\n- [x] Erase sorting in preferences\r\n- [ ] Disable tab refresh when deleting a tab\r\n- [ ] Add support for tab scrolling when dragging with many tabs open (going to the right or left end should move the tabs)\r\n- [ ] Check nothing is broken!\r\n\r\n**For another PR**\r\n- Offer sorting options\r\n- Offer additional options (Delete tabs to the right, to the left, delete all tabs except)?\r\n- Adapt editor preferences panel sorting options\r\n"},"comment":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/comments/96773942","html_url":"https://github.com/spyder-ide/spyder/pull/2372#issuecomment-96773942","issue_url":"https://api.github.com/repos/spyder-ide/spyder/issues/2372","id":96773942,"user":{"login":"goanpeca","id":3627835,"avatar_url":"https://avatars.githubusercontent.com/u/3627835?v=3","gravatar_id":"","url":"https://api.github.com/users/goanpeca","html_url":"https://github.com/goanpeca","followers_url":"https://api.github.com/users/goanpeca/followers","following_url":"https://api.github.com/users/goanpeca/following{/other_user}","gists_url":"https://api.github.com/users/goanpeca/gists{/gist_id}","starred_url":"https://api.github.com/users/goanpeca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goanpeca/subscriptions","organizations_url":"https://api.github.com/users/goanpeca/orgs","repos_url":"https://api.github.com/users/goanpeca/repos","events_url":"https://api.github.com/users/goanpeca/events{/privacy}","received_events_url":"https://api.github.com/users/goanpeca/received_events","type":"User","site_admin":false},"created_at":"2015-04-27T18:35:07Z","updated_at":"2015-04-27T18:35:07Z","body":"@ccordoba12 I think I solved the issue you commented, but there is still another one that is quite annoying. If you have many tabs open and the scrolling buttons are there, if you click on  file closer to the left, the whole tabs will shift and put the current clicked tab to the right... very weird behavior..."}}