{"action":"created","comment":{"url":"https://api.github.com/repos/redox-os/sodium/pulls/comments/60864140","id":60864140,"diff_hunk":"@@ -50,17 +72,62 @@ impl Editor {\n                     FileStatus::Other => format!(\"Couldn't write {}\", sec_cmd),\n                 }\n             },\n+            \"ls\" => {\n+                let description = get_buffers_description(&self.buffers);\n+                let mut new_buffer : BufferInfo = SplitBuffer::from_str(&description).into();","path":"src/core/prompt.rs","position":38,"original_position":38,"commit_id":"848ff01fb194c87d1b66b2fa600297137022578f","original_commit_id":"848ff01fb194c87d1b66b2fa600297137022578f","user":{"login":"ticki","id":13349091,"avatar_url":"https://avatars.githubusercontent.com/u/13349091?v=3","gravatar_id":"","url":"https://api.github.com/users/ticki","html_url":"https://github.com/ticki","followers_url":"https://api.github.com/users/ticki/followers","following_url":"https://api.github.com/users/ticki/following{/other_user}","gists_url":"https://api.github.com/users/ticki/gists{/gist_id}","starred_url":"https://api.github.com/users/ticki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ticki/subscriptions","organizations_url":"https://api.github.com/users/ticki/orgs","repos_url":"https://api.github.com/users/ticki/repos","events_url":"https://api.github.com/users/ticki/events{/privacy}","received_events_url":"https://api.github.com/users/ticki/received_events","type":"User","site_admin":false},"body":"Just a style tip: use `new_buffer: BufferInfo` instead.","created_at":"2016-04-25T05:35:54Z","updated_at":"2016-04-25T05:35:54Z","html_url":"https://github.com/redox-os/sodium/pull/40#discussion_r60864140","pull_request_url":"https://api.github.com/repos/redox-os/sodium/pulls/40","_links":{"self":{"href":"https://api.github.com/repos/redox-os/sodium/pulls/comments/60864140"},"html":{"href":"https://github.com/redox-os/sodium/pull/40#discussion_r60864140"},"pull_request":{"href":"https://api.github.com/repos/redox-os/sodium/pulls/40"}}},"pull_request":{"url":"https://api.github.com/repos/redox-os/sodium/pulls/40","id":67661577,"html_url":"https://github.com/redox-os/sodium/pull/40","diff_url":"https://github.com/redox-os/sodium/pull/40.diff","patch_url":"https://github.com/redox-os/sodium/pull/40.patch","issue_url":"https://api.github.com/repos/redox-os/sodium/issues/40","number":40,"state":"open","locked":false,"title":"[WIP] Multiple buffers","user":{"login":"wesleywiser","id":831192,"avatar_url":"https://avatars.githubusercontent.com/u/831192?v=3","gravatar_id":"","url":"https://api.github.com/users/wesleywiser","html_url":"https://github.com/wesleywiser","followers_url":"https://api.github.com/users/wesleywiser/followers","following_url":"https://api.github.com/users/wesleywiser/following{/other_user}","gists_url":"https://api.github.com/users/wesleywiser/gists{/gist_id}","starred_url":"https://api.github.com/users/wesleywiser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wesleywiser/subscriptions","organizations_url":"https://api.github.com/users/wesleywiser/orgs","repos_url":"https://api.github.com/users/wesleywiser/repos","events_url":"https://api.github.com/users/wesleywiser/events{/privacy}","received_events_url":"https://api.github.com/users/wesleywiser/received_events","type":"User","site_admin":false},"body":"Related to #24 \r\n\r\nHere's what's currently implemented:\r\n\r\n- Support for multiple buffers\r\n- `o file` opens the file in a new buffer\r\n- `ls` lists the available buffers in a new buffer\r\n- `b{n}` switches to the specified buffer\r\n\r\nI still need to:\r\n\r\n- [ ] Update `help.txt`\r\n- [ ] Add `bd` to remove the current buffer\r\n- [ ] Others?\r\n\r\nI'd appreciate feedback on the code and\\or the features.\r\n\r\nThanks!","created_at":"2016-04-25T03:12:27Z","updated_at":"2016-04-25T05:35:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"333bdf1a8c5405ec495c9a1d86cab1e680f830b1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/redox-os/sodium/pulls/40/commits","review_comments_url":"https://api.github.com/repos/redox-os/sodium/pulls/40/comments","review_comment_url":"https://api.github.com/repos/redox-os/sodium/pulls/comments{/number}","comments_url":"https://api.github.com/repos/redox-os/sodium/issues/40/comments","statuses_url":"https://api.github.com/repos/redox-os/sodium/statuses/848ff01fb194c87d1b66b2fa600297137022578f","head":{"label":"wesleywiser:multiple_buffers","ref":"multiple_buffers","sha":"848ff01fb194c87d1b66b2fa600297137022578f","user":{"login":"wesleywiser","id":831192,"avatar_url":"https://avatars.githubusercontent.com/u/831192?v=3","gravatar_id":"","url":"https://api.github.com/users/wesleywiser","html_url":"https://github.com/wesleywiser","followers_url":"https://api.github.com/users/wesleywiser/followers","following_url":"https://api.github.com/users/wesleywiser/following{/other_user}","gists_url":"https://api.github.com/users/wesleywiser/gists{/gist_id}","starred_url":"https://api.github.com/users/wesleywiser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wesleywiser/subscriptions","organizations_url":"https://api.github.com/users/wesleywiser/orgs","repos_url":"https://api.github.com/users/wesleywiser/repos","events_url":"https://api.github.com/users/wesleywiser/events{/privacy}","received_events_url":"https://api.github.com/users/wesleywiser/received_events","type":"User","site_admin":false},"repo":{"id":56936399,"name":"sodium","full_name":"wesleywiser/sodium","owner":{"login":"wesleywiser","id":831192,"avatar_url":"https://avatars.githubusercontent.com/u/831192?v=3","gravatar_id":"","url":"https://api.github.com/users/wesleywiser","html_url":"https://github.com/wesleywiser","followers_url":"https://api.github.com/users/wesleywiser/followers","following_url":"https://api.github.com/users/wesleywiser/following{/other_user}","gists_url":"https://api.github.com/users/wesleywiser/gists{/gist_id}","starred_url":"https://api.github.com/users/wesleywiser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wesleywiser/subscriptions","organizations_url":"https://api.github.com/users/wesleywiser/orgs","repos_url":"https://api.github.com/users/wesleywiser/repos","events_url":"https://api.github.com/users/wesleywiser/events{/privacy}","received_events_url":"https://api.github.com/users/wesleywiser/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wesleywiser/sodium","description":"Sodium: Vim 2.0","fork":true,"url":"https://api.github.com/repos/wesleywiser/sodium","forks_url":"https://api.github.com/repos/wesleywiser/sodium/forks","keys_url":"https://api.github.com/repos/wesleywiser/sodium/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wesleywiser/sodium/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wesleywiser/sodium/teams","hooks_url":"https://api.github.com/repos/wesleywiser/sodium/hooks","issue_events_url":"https://api.github.com/repos/wesleywiser/sodium/issues/events{/number}","events_url":"https://api.github.com/repos/wesleywiser/sodium/events","assignees_url":"https://api.github.com/repos/wesleywiser/sodium/assignees{/user}","branches_url":"https://api.github.com/repos/wesleywiser/sodium/branches{/branch}","tags_url":"https://api.github.com/repos/wesleywiser/sodium/tags","blobs_url":"https://api.github.com/repos/wesleywiser/sodium/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wesleywiser/sodium/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wesleywiser/sodium/git/refs{/sha}","trees_url":"https://api.github.com/repos/wesleywiser/sodium/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wesleywiser/sodium/statuses/{sha}","languages_url":"https://api.github.com/repos/wesleywiser/sodium/languages","stargazers_url":"https://api.github.com/repos/wesleywiser/sodium/stargazers","contributors_url":"https://api.github.com/repos/wesleywiser/sodium/contributors","subscribers_url":"https://api.github.com/repos/wesleywiser/sodium/subscribers","subscription_url":"https://api.github.com/repos/wesleywiser/sodium/subscription","commits_url":"https://api.github.com/repos/wesleywiser/sodium/commits{/sha}","git_commits_url":"https://api.github.com/repos/wesleywiser/sodium/git/commits{/sha}","comments_url":"https://api.github.com/repos/wesleywiser/sodium/comments{/number}","issue_comment_url":"https://api.github.com/repos/wesleywiser/sodium/issues/comments{/number}","contents_url":"https://api.github.com/repos/wesleywiser/sodium/contents/{+path}","compare_url":"https://api.github.com/repos/wesleywiser/sodium/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wesleywiser/sodium/merges","archive_url":"https://api.github.com/repos/wesleywiser/sodium/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wesleywiser/sodium/downloads","issues_url":"https://api.github.com/repos/wesleywiser/sodium/issues{/number}","pulls_url":"https://api.github.com/repos/wesleywiser/sodium/pulls{/number}","milestones_url":"https://api.github.com/repos/wesleywiser/sodium/milestones{/number}","notifications_url":"https://api.github.com/repos/wesleywiser/sodium/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wesleywiser/sodium/labels{/name}","releases_url":"https://api.github.com/repos/wesleywiser/sodium/releases{/id}","deployments_url":"https://api.github.com/repos/wesleywiser/sodium/deployments","created_at":"2016-04-23T19:12:48Z","updated_at":"2016-04-23T19:12:49Z","pushed_at":"2016-04-25T03:00:36Z","git_url":"git://github.com/wesleywiser/sodium.git","ssh_url":"git@github.com:wesleywiser/sodium.git","clone_url":"https://github.com/wesleywiser/sodium.git","svn_url":"https://github.com/wesleywiser/sodium","homepage":"","size":225,"stargazers_count":0,"watchers_count":0,"language":"Rust","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":"redox-os:master","ref":"master","sha":"61f820a585554089241418e768d2d545e43c790c","user":{"login":"redox-os","id":14909902,"avatar_url":"https://avatars.githubusercontent.com/u/14909902?v=3","gravatar_id":"","url":"https://api.github.com/users/redox-os","html_url":"https://github.com/redox-os","followers_url":"https://api.github.com/users/redox-os/followers","following_url":"https://api.github.com/users/redox-os/following{/other_user}","gists_url":"https://api.github.com/users/redox-os/gists{/gist_id}","starred_url":"https://api.github.com/users/redox-os/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redox-os/subscriptions","organizations_url":"https://api.github.com/users/redox-os/orgs","repos_url":"https://api.github.com/users/redox-os/repos","events_url":"https://api.github.com/users/redox-os/events{/privacy}","received_events_url":"https://api.github.com/users/redox-os/received_events","type":"Organization","site_admin":false},"repo":{"id":48176845,"name":"sodium","full_name":"redox-os/sodium","owner":{"login":"redox-os","id":14909902,"avatar_url":"https://avatars.githubusercontent.com/u/14909902?v=3","gravatar_id":"","url":"https://api.github.com/users/redox-os","html_url":"https://github.com/redox-os","followers_url":"https://api.github.com/users/redox-os/followers","following_url":"https://api.github.com/users/redox-os/following{/other_user}","gists_url":"https://api.github.com/users/redox-os/gists{/gist_id}","starred_url":"https://api.github.com/users/redox-os/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redox-os/subscriptions","organizations_url":"https://api.github.com/users/redox-os/orgs","repos_url":"https://api.github.com/users/redox-os/repos","events_url":"https://api.github.com/users/redox-os/events{/privacy}","received_events_url":"https://api.github.com/users/redox-os/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/redox-os/sodium","description":"Sodium: Vim 2.0","fork":false,"url":"https://api.github.com/repos/redox-os/sodium","forks_url":"https://api.github.com/repos/redox-os/sodium/forks","keys_url":"https://api.github.com/repos/redox-os/sodium/keys{/key_id}","collaborators_url":"https://api.github.com/repos/redox-os/sodium/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/redox-os/sodium/teams","hooks_url":"https://api.github.com/repos/redox-os/sodium/hooks","issue_events_url":"https://api.github.com/repos/redox-os/sodium/issues/events{/number}","events_url":"https://api.github.com/repos/redox-os/sodium/events","assignees_url":"https://api.github.com/repos/redox-os/sodium/assignees{/user}","branches_url":"https://api.github.com/repos/redox-os/sodium/branches{/branch}","tags_url":"https://api.github.com/repos/redox-os/sodium/tags","blobs_url":"https://api.github.com/repos/redox-os/sodium/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/redox-os/sodium/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/redox-os/sodium/git/refs{/sha}","trees_url":"https://api.github.com/repos/redox-os/sodium/git/trees{/sha}","statuses_url":"https://api.github.com/repos/redox-os/sodium/statuses/{sha}","languages_url":"https://api.github.com/repos/redox-os/sodium/languages","stargazers_url":"https://api.github.com/repos/redox-os/sodium/stargazers","contributors_url":"https://api.github.com/repos/redox-os/sodium/contributors","subscribers_url":"https://api.github.com/repos/redox-os/sodium/subscribers","subscription_url":"https://api.github.com/repos/redox-os/sodium/subscription","commits_url":"https://api.github.com/repos/redox-os/sodium/commits{/sha}","git_commits_url":"https://api.github.com/repos/redox-os/sodium/git/commits{/sha}","comments_url":"https://api.github.com/repos/redox-os/sodium/comments{/number}","issue_comment_url":"https://api.github.com/repos/redox-os/sodium/issues/comments{/number}","contents_url":"https://api.github.com/repos/redox-os/sodium/contents/{+path}","compare_url":"https://api.github.com/repos/redox-os/sodium/compare/{base}...{head}","merges_url":"https://api.github.com/repos/redox-os/sodium/merges","archive_url":"https://api.github.com/repos/redox-os/sodium/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/redox-os/sodium/downloads","issues_url":"https://api.github.com/repos/redox-os/sodium/issues{/number}","pulls_url":"https://api.github.com/repos/redox-os/sodium/pulls{/number}","milestones_url":"https://api.github.com/repos/redox-os/sodium/milestones{/number}","notifications_url":"https://api.github.com/repos/redox-os/sodium/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/redox-os/sodium/labels{/name}","releases_url":"https://api.github.com/repos/redox-os/sodium/releases{/id}","deployments_url":"https://api.github.com/repos/redox-os/sodium/deployments","created_at":"2015-12-17T13:48:01Z","updated_at":"2016-04-24T17:17:29Z","pushed_at":"2016-04-25T03:12:28Z","git_url":"git://github.com/redox-os/sodium.git","ssh_url":"git@github.com:redox-os/sodium.git","clone_url":"https://github.com/redox-os/sodium.git","svn_url":"https://github.com/redox-os/sodium","homepage":"","size":284,"stargazers_count":38,"watchers_count":38,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":29,"forks":13,"open_issues":29,"watchers":38,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/redox-os/sodium/pulls/40"},"html":{"href":"https://github.com/redox-os/sodium/pull/40"},"issue":{"href":"https://api.github.com/repos/redox-os/sodium/issues/40"},"comments":{"href":"https://api.github.com/repos/redox-os/sodium/issues/40/comments"},"review_comments":{"href":"https://api.github.com/repos/redox-os/sodium/pulls/40/comments"},"review_comment":{"href":"https://api.github.com/repos/redox-os/sodium/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/redox-os/sodium/pulls/40/commits"},"statuses":{"href":"https://api.github.com/repos/redox-os/sodium/statuses/848ff01fb194c87d1b66b2fa600297137022578f"}}}}