{"action":"created","comment":{"url":"https://api.github.com/repos/geany/geany/pulls/comments/71978407","id":71978407,"diff_hunk":"@@ -273,6 +273,8 @@ enum GeanyKeyBindingID\n \tGEANY_KEYS_FORMAT_SENDTOCMD7,\t\t\t\t/**< Keybinding. */\n \tGEANY_KEYS_FORMAT_SENDTOCMD8,\t\t\t\t/**< Keybinding. */\n \tGEANY_KEYS_FORMAT_SENDTOCMD9,\t\t\t\t/**< Keybinding. */\n+\tGEANY_KEYS_NOTEBOOK_SORTTABS_FILENAME,\t\t/**< Keybinding. */\n+\tGEANY_KEYS_NOTEBOOK_SORTTABS_PATHNAME,\t\t/**< Keybinding. */","path":"src/keybindings.h","position":5,"original_position":5,"commit_id":"4f219bdad24610e674da26cf2dc97d7d8a10b8c8","original_commit_id":"4f219bdad24610e674da26cf2dc97d7d8a10b8c8","user":{"login":"b4n","id":793526,"avatar_url":"https://avatars.githubusercontent.com/u/793526?v=3","gravatar_id":"","url":"https://api.github.com/users/b4n","html_url":"https://github.com/b4n","followers_url":"https://api.github.com/users/b4n/followers","following_url":"https://api.github.com/users/b4n/following{/other_user}","gists_url":"https://api.github.com/users/b4n/gists{/gist_id}","starred_url":"https://api.github.com/users/b4n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/b4n/subscriptions","organizations_url":"https://api.github.com/users/b4n/orgs","repos_url":"https://api.github.com/users/b4n/repos","events_url":"https://api.github.com/users/b4n/events{/privacy}","received_events_url":"https://api.github.com/users/b4n/received_events","type":"User","site_admin":false},"body":"needs to go just before `GEANY_KEYS_COUNT` not to break ABI","created_at":"2016-07-23T21:18:32Z","updated_at":"2016-07-23T21:18:32Z","html_url":"https://github.com/geany/geany/pull/1144#discussion_r71978407","pull_request_url":"https://api.github.com/repos/geany/geany/pulls/1144","_links":{"self":{"href":"https://api.github.com/repos/geany/geany/pulls/comments/71978407"},"html":{"href":"https://github.com/geany/geany/pull/1144#discussion_r71978407"},"pull_request":{"href":"https://api.github.com/repos/geany/geany/pulls/1144"}}},"pull_request":{"url":"https://api.github.com/repos/geany/geany/pulls/1144","id":78145226,"html_url":"https://github.com/geany/geany/pull/1144","diff_url":"https://github.com/geany/geany/pull/1144.diff","patch_url":"https://github.com/geany/geany/pull/1144.patch","issue_url":"https://api.github.com/repos/geany/geany/issues/1144","number":1144,"state":"open","locked":false,"title":"Add features for sorting editor tabs","user":{"login":"konsolebox","id":329497,"avatar_url":"https://avatars.githubusercontent.com/u/329497?v=3","gravatar_id":"","url":"https://api.github.com/users/konsolebox","html_url":"https://github.com/konsolebox","followers_url":"https://api.github.com/users/konsolebox/followers","following_url":"https://api.github.com/users/konsolebox/following{/other_user}","gists_url":"https://api.github.com/users/konsolebox/gists{/gist_id}","starred_url":"https://api.github.com/users/konsolebox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konsolebox/subscriptions","organizations_url":"https://api.github.com/users/konsolebox/orgs","repos_url":"https://api.github.com/users/konsolebox/repos","events_url":"https://api.github.com/users/konsolebox/events{/privacy}","received_events_url":"https://api.github.com/users/konsolebox/received_events","type":"User","site_admin":false},"body":"This PR is about adding features to make it possible to sort the tabs in the editor area.  It includes the following changes:\r\n\r\n04eb16b Add capability to automatically sort editor tabs\r\n138dd09 Add keybindings for sorting editor tabs\r\n803d6a6 Add capability to sort editor tabs\r\na64749e Allow document_get_notebook_child() to be used globally\r\n\r\nI chose to place them in one PR so everything can be discussed in one place.   Each update depends on the other update that comes earlier than it.  Which means, if the last update is wanted (`04eb16b`), all other updates that came before it should be included, but if only `803d6a6` is wanted, it would only require `a64749e`.\r\n\r\nHere are the snapshots:\r\n\r\nhttp://imgur.com/6uYVd72\r\nhttp://imgur.com/G4Fi9iV\r\nhttp://imgur.com/VNOJaVv\r\nhttp://imgur.com/Pb00zIK\r\n\r\nThe first 2 updates (`803d6a6` and `138dd09`) made a fair amount of changes in the code, but the last update had to be a little aggressive since the only way to get it done properly is to alter the codes that call `document_open_file()`.  Modifying `document_open_file()` itself would mean that every file opened would cause the order of tabs in the notebook widget to be recalculated and rearranged.\r\n\r\nThis could cause significant slowdown during startup time especially when opening a lot of files.  That's why the only proper way to do it is to make changes on the calling functions instead, where we could only allow a function like `notebook_auto_sort_tabs()` to be called once after multiple files are opened.\r\n\r\nWe can also create a wrapper function like `document_open_file_and_auto_sort_tabs()` but it would only apply to calling functions that only open a file once everytime they are called.\r\n\r\nIt's unlikely for the last update to be merged because of that, but please also consider the first two (`803d6a6` and `138dd09`).  I can create another PR for those if wanted.\r\n","created_at":"2016-07-20T13:19:26Z","updated_at":"2016-07-23T21:18:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f1f97a97ab64b4f7eb64a955dd6830006f220afe","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/geany/geany/pulls/1144/commits","review_comments_url":"https://api.github.com/repos/geany/geany/pulls/1144/comments","review_comment_url":"https://api.github.com/repos/geany/geany/pulls/comments{/number}","comments_url":"https://api.github.com/repos/geany/geany/issues/1144/comments","statuses_url":"https://api.github.com/repos/geany/geany/statuses/4f219bdad24610e674da26cf2dc97d7d8a10b8c8","head":{"label":"konsolebox:sort_tabs_auto","ref":"sort_tabs_auto","sha":"4f219bdad24610e674da26cf2dc97d7d8a10b8c8","user":{"login":"konsolebox","id":329497,"avatar_url":"https://avatars.githubusercontent.com/u/329497?v=3","gravatar_id":"","url":"https://api.github.com/users/konsolebox","html_url":"https://github.com/konsolebox","followers_url":"https://api.github.com/users/konsolebox/followers","following_url":"https://api.github.com/users/konsolebox/following{/other_user}","gists_url":"https://api.github.com/users/konsolebox/gists{/gist_id}","starred_url":"https://api.github.com/users/konsolebox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konsolebox/subscriptions","organizations_url":"https://api.github.com/users/konsolebox/orgs","repos_url":"https://api.github.com/users/konsolebox/repos","events_url":"https://api.github.com/users/konsolebox/events{/privacy}","received_events_url":"https://api.github.com/users/konsolebox/received_events","type":"User","site_admin":false},"repo":{"id":42157822,"name":"geany","full_name":"konsolebox/geany","owner":{"login":"konsolebox","id":329497,"avatar_url":"https://avatars.githubusercontent.com/u/329497?v=3","gravatar_id":"","url":"https://api.github.com/users/konsolebox","html_url":"https://github.com/konsolebox","followers_url":"https://api.github.com/users/konsolebox/followers","following_url":"https://api.github.com/users/konsolebox/following{/other_user}","gists_url":"https://api.github.com/users/konsolebox/gists{/gist_id}","starred_url":"https://api.github.com/users/konsolebox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konsolebox/subscriptions","organizations_url":"https://api.github.com/users/konsolebox/orgs","repos_url":"https://api.github.com/users/konsolebox/repos","events_url":"https://api.github.com/users/konsolebox/events{/privacy}","received_events_url":"https://api.github.com/users/konsolebox/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/konsolebox/geany","description":"A fast and lightweight IDE","fork":true,"url":"https://api.github.com/repos/konsolebox/geany","forks_url":"https://api.github.com/repos/konsolebox/geany/forks","keys_url":"https://api.github.com/repos/konsolebox/geany/keys{/key_id}","collaborators_url":"https://api.github.com/repos/konsolebox/geany/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/konsolebox/geany/teams","hooks_url":"https://api.github.com/repos/konsolebox/geany/hooks","issue_events_url":"https://api.github.com/repos/konsolebox/geany/issues/events{/number}","events_url":"https://api.github.com/repos/konsolebox/geany/events","assignees_url":"https://api.github.com/repos/konsolebox/geany/assignees{/user}","branches_url":"https://api.github.com/repos/konsolebox/geany/branches{/branch}","tags_url":"https://api.github.com/repos/konsolebox/geany/tags","blobs_url":"https://api.github.com/repos/konsolebox/geany/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/konsolebox/geany/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/konsolebox/geany/git/refs{/sha}","trees_url":"https://api.github.com/repos/konsolebox/geany/git/trees{/sha}","statuses_url":"https://api.github.com/repos/konsolebox/geany/statuses/{sha}","languages_url":"https://api.github.com/repos/konsolebox/geany/languages","stargazers_url":"https://api.github.com/repos/konsolebox/geany/stargazers","contributors_url":"https://api.github.com/repos/konsolebox/geany/contributors","subscribers_url":"https://api.github.com/repos/konsolebox/geany/subscribers","subscription_url":"https://api.github.com/repos/konsolebox/geany/subscription","commits_url":"https://api.github.com/repos/konsolebox/geany/commits{/sha}","git_commits_url":"https://api.github.com/repos/konsolebox/geany/git/commits{/sha}","comments_url":"https://api.github.com/repos/konsolebox/geany/comments{/number}","issue_comment_url":"https://api.github.com/repos/konsolebox/geany/issues/comments{/number}","contents_url":"https://api.github.com/repos/konsolebox/geany/contents/{+path}","compare_url":"https://api.github.com/repos/konsolebox/geany/compare/{base}...{head}","merges_url":"https://api.github.com/repos/konsolebox/geany/merges","archive_url":"https://api.github.com/repos/konsolebox/geany/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/konsolebox/geany/downloads","issues_url":"https://api.github.com/repos/konsolebox/geany/issues{/number}","pulls_url":"https://api.github.com/repos/konsolebox/geany/pulls{/number}","milestones_url":"https://api.github.com/repos/konsolebox/geany/milestones{/number}","notifications_url":"https://api.github.com/repos/konsolebox/geany/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/konsolebox/geany/labels{/name}","releases_url":"https://api.github.com/repos/konsolebox/geany/releases{/id}","deployments_url":"https://api.github.com/repos/konsolebox/geany/deployments","created_at":"2015-09-09T05:23:35Z","updated_at":"2016-07-08T08:31:49Z","pushed_at":"2016-07-23T20:52:00Z","git_url":"git://github.com/konsolebox/geany.git","ssh_url":"git@github.com:konsolebox/geany.git","clone_url":"https://github.com/konsolebox/geany.git","svn_url":"https://github.com/konsolebox/geany","homepage":"http://www.geany.org","size":47659,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"geany:master","ref":"master","sha":"89d3bf71555a715ce58d7d01bf31cbb308957a5d","user":{"login":"geany","id":1108795,"avatar_url":"https://avatars.githubusercontent.com/u/1108795?v=3","gravatar_id":"","url":"https://api.github.com/users/geany","html_url":"https://github.com/geany","followers_url":"https://api.github.com/users/geany/followers","following_url":"https://api.github.com/users/geany/following{/other_user}","gists_url":"https://api.github.com/users/geany/gists{/gist_id}","starred_url":"https://api.github.com/users/geany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geany/subscriptions","organizations_url":"https://api.github.com/users/geany/orgs","repos_url":"https://api.github.com/users/geany/repos","events_url":"https://api.github.com/users/geany/events{/privacy}","received_events_url":"https://api.github.com/users/geany/received_events","type":"Organization","site_admin":false},"repo":{"id":2532922,"name":"geany","full_name":"geany/geany","owner":{"login":"geany","id":1108795,"avatar_url":"https://avatars.githubusercontent.com/u/1108795?v=3","gravatar_id":"","url":"https://api.github.com/users/geany","html_url":"https://github.com/geany","followers_url":"https://api.github.com/users/geany/followers","following_url":"https://api.github.com/users/geany/following{/other_user}","gists_url":"https://api.github.com/users/geany/gists{/gist_id}","starred_url":"https://api.github.com/users/geany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geany/subscriptions","organizations_url":"https://api.github.com/users/geany/orgs","repos_url":"https://api.github.com/users/geany/repos","events_url":"https://api.github.com/users/geany/events{/privacy}","received_events_url":"https://api.github.com/users/geany/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/geany/geany","description":"A fast and lightweight IDE","fork":false,"url":"https://api.github.com/repos/geany/geany","forks_url":"https://api.github.com/repos/geany/geany/forks","keys_url":"https://api.github.com/repos/geany/geany/keys{/key_id}","collaborators_url":"https://api.github.com/repos/geany/geany/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/geany/geany/teams","hooks_url":"https://api.github.com/repos/geany/geany/hooks","issue_events_url":"https://api.github.com/repos/geany/geany/issues/events{/number}","events_url":"https://api.github.com/repos/geany/geany/events","assignees_url":"https://api.github.com/repos/geany/geany/assignees{/user}","branches_url":"https://api.github.com/repos/geany/geany/branches{/branch}","tags_url":"https://api.github.com/repos/geany/geany/tags","blobs_url":"https://api.github.com/repos/geany/geany/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/geany/geany/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/geany/geany/git/refs{/sha}","trees_url":"https://api.github.com/repos/geany/geany/git/trees{/sha}","statuses_url":"https://api.github.com/repos/geany/geany/statuses/{sha}","languages_url":"https://api.github.com/repos/geany/geany/languages","stargazers_url":"https://api.github.com/repos/geany/geany/stargazers","contributors_url":"https://api.github.com/repos/geany/geany/contributors","subscribers_url":"https://api.github.com/repos/geany/geany/subscribers","subscription_url":"https://api.github.com/repos/geany/geany/subscription","commits_url":"https://api.github.com/repos/geany/geany/commits{/sha}","git_commits_url":"https://api.github.com/repos/geany/geany/git/commits{/sha}","comments_url":"https://api.github.com/repos/geany/geany/comments{/number}","issue_comment_url":"https://api.github.com/repos/geany/geany/issues/comments{/number}","contents_url":"https://api.github.com/repos/geany/geany/contents/{+path}","compare_url":"https://api.github.com/repos/geany/geany/compare/{base}...{head}","merges_url":"https://api.github.com/repos/geany/geany/merges","archive_url":"https://api.github.com/repos/geany/geany/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/geany/geany/downloads","issues_url":"https://api.github.com/repos/geany/geany/issues{/number}","pulls_url":"https://api.github.com/repos/geany/geany/pulls{/number}","milestones_url":"https://api.github.com/repos/geany/geany/milestones{/number}","notifications_url":"https://api.github.com/repos/geany/geany/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/geany/geany/labels{/name}","releases_url":"https://api.github.com/repos/geany/geany/releases{/id}","deployments_url":"https://api.github.com/repos/geany/geany/deployments","created_at":"2011-10-07T14:25:32Z","updated_at":"2016-07-23T16:08:22Z","pushed_at":"2016-07-23T20:52:01Z","git_url":"git://github.com/geany/geany.git","ssh_url":"git@github.com:geany/geany.git","clone_url":"https://github.com/geany/geany.git","svn_url":"https://github.com/geany/geany","homepage":"http://www.geany.org","size":56331,"stargazers_count":785,"watchers_count":785,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":271,"mirror_url":null,"open_issues_count":376,"forks":271,"open_issues":376,"watchers":785,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/geany/geany/pulls/1144"},"html":{"href":"https://github.com/geany/geany/pull/1144"},"issue":{"href":"https://api.github.com/repos/geany/geany/issues/1144"},"comments":{"href":"https://api.github.com/repos/geany/geany/issues/1144/comments"},"review_comments":{"href":"https://api.github.com/repos/geany/geany/pulls/1144/comments"},"review_comment":{"href":"https://api.github.com/repos/geany/geany/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/geany/geany/pulls/1144/commits"},"statuses":{"href":"https://api.github.com/repos/geany/geany/statuses/4f219bdad24610e674da26cf2dc97d7d8a10b8c8"}}}}
{"actor":{"display_login":"b4n"}}