{"action":"created","comment":{"url":"https://api.github.com/repos/xi-frontend/xi-term/pulls/comments/298993623","pull_request_review_id":256273255,"id":298993623,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI5ODk5MzYyMw==","diff_hunk":"@@ -118,9 +120,77 @@ impl Future for Editor {\n \n impl Editor {\n     /// Handle keyboard and mouse events\n-    pub fn handle_input(&mut self, event: TermionEvent) {\n-        if let Some(view) = self.views.get_mut(&self.current_view) {\n-            view.handle_input(event)\n+    pub fn handle_input(&mut self, event: Event) {\n+        // We have to remove and insert again, to beat the borrow-checker\n+        match event {\n+            Event::Key(key) => {\n+                match self.keybindings.keymap.get(&event).cloned() {\n+                    Some(cmd) => self.handle_command(cmd),","path":"src/widgets/editor.rs","position":117,"original_position":69,"commit_id":"88c8b353378d37304378746d2d53e068f7fe0f9c","original_commit_id":"a4e9f93bbafa724a8cb94330cf92e53576e431f3","user":{"login":"msirringhaus","id":50315401,"node_id":"MDQ6VXNlcjUwMzE1NDAx","avatar_url":"https://avatars3.githubusercontent.com/u/50315401?v=4","gravatar_id":"","url":"https://api.github.com/users/msirringhaus","html_url":"https://github.com/msirringhaus","followers_url":"https://api.github.com/users/msirringhaus/followers","following_url":"https://api.github.com/users/msirringhaus/following{/other_user}","gists_url":"https://api.github.com/users/msirringhaus/gists{/gist_id}","starred_url":"https://api.github.com/users/msirringhaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msirringhaus/subscriptions","organizations_url":"https://api.github.com/users/msirringhaus/orgs","repos_url":"https://api.github.com/users/msirringhaus/repos","events_url":"https://api.github.com/users/msirringhaus/events{/privacy}","received_events_url":"https://api.github.com/users/msirringhaus/received_events","type":"User","site_admin":false},"body":"That part is different on HEAD","created_at":"2019-07-01T11:13:07Z","updated_at":"2019-07-01T11:13:07Z","html_url":"https://github.com/xi-frontend/xi-term/pull/109#discussion_r298993623","pull_request_url":"https://api.github.com/repos/xi-frontend/xi-term/pulls/109","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/xi-frontend/xi-term/pulls/comments/298993623"},"html":{"href":"https://github.com/xi-frontend/xi-term/pull/109#discussion_r298993623"},"pull_request":{"href":"https://api.github.com/repos/xi-frontend/xi-term/pulls/109"}},"in_reply_to_id":298972726},"pull_request":{"url":"https://api.github.com/repos/xi-frontend/xi-term/pulls/109","id":293230388,"node_id":"MDExOlB1bGxSZXF1ZXN0MjkzMjMwMzg4","html_url":"https://github.com/xi-frontend/xi-term/pull/109","diff_url":"https://github.com/xi-frontend/xi-term/pull/109.diff","patch_url":"https://github.com/xi-frontend/xi-term/pull/109.patch","issue_url":"https://api.github.com/repos/xi-frontend/xi-term/issues/109","number":109,"state":"open","locked":false,"title":"Sublime-like changes","user":{"login":"msirringhaus","id":50315401,"node_id":"MDQ6VXNlcjUwMzE1NDAx","avatar_url":"https://avatars3.githubusercontent.com/u/50315401?v=4","gravatar_id":"","url":"https://api.github.com/users/msirringhaus","html_url":"https://github.com/msirringhaus","followers_url":"https://api.github.com/users/msirringhaus/followers","following_url":"https://api.github.com/users/msirringhaus/following{/other_user}","gists_url":"https://api.github.com/users/msirringhaus/gists{/gist_id}","starred_url":"https://api.github.com/users/msirringhaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msirringhaus/subscriptions","organizations_url":"https://api.github.com/users/msirringhaus/orgs","repos_url":"https://api.github.com/users/msirringhaus/repos","events_url":"https://api.github.com/users/msirringhaus/events{/privacy}","received_events_url":"https://api.github.com/users/msirringhaus/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-07-01T08:19:25Z","updated_at":"2019-07-01T11:13:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"23d3f927733d7f6814a8ffb6a9a5cbced857a0ac","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/xi-frontend/xi-term/pulls/109/commits","review_comments_url":"https://api.github.com/repos/xi-frontend/xi-term/pulls/109/comments","review_comment_url":"https://api.github.com/repos/xi-frontend/xi-term/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xi-frontend/xi-term/issues/109/comments","statuses_url":"https://api.github.com/repos/xi-frontend/xi-term/statuses/88c8b353378d37304378746d2d53e068f7fe0f9c","head":{"label":"msirringhaus:master","ref":"master","sha":"88c8b353378d37304378746d2d53e068f7fe0f9c","user":{"login":"msirringhaus","id":50315401,"node_id":"MDQ6VXNlcjUwMzE1NDAx","avatar_url":"https://avatars3.githubusercontent.com/u/50315401?v=4","gravatar_id":"","url":"https://api.github.com/users/msirringhaus","html_url":"https://github.com/msirringhaus","followers_url":"https://api.github.com/users/msirringhaus/followers","following_url":"https://api.github.com/users/msirringhaus/following{/other_user}","gists_url":"https://api.github.com/users/msirringhaus/gists{/gist_id}","starred_url":"https://api.github.com/users/msirringhaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msirringhaus/subscriptions","organizations_url":"https://api.github.com/users/msirringhaus/orgs","repos_url":"https://api.github.com/users/msirringhaus/repos","events_url":"https://api.github.com/users/msirringhaus/events{/privacy}","received_events_url":"https://api.github.com/users/msirringhaus/received_events","type":"User","site_admin":false},"repo":{"id":193449970,"node_id":"MDEwOlJlcG9zaXRvcnkxOTM0NDk5NzA=","name":"xi-term","full_name":"msirringhaus/xi-term","private":false,"owner":{"login":"msirringhaus","id":50315401,"node_id":"MDQ6VXNlcjUwMzE1NDAx","avatar_url":"https://avatars3.githubusercontent.com/u/50315401?v=4","gravatar_id":"","url":"https://api.github.com/users/msirringhaus","html_url":"https://github.com/msirringhaus","followers_url":"https://api.github.com/users/msirringhaus/followers","following_url":"https://api.github.com/users/msirringhaus/following{/other_user}","gists_url":"https://api.github.com/users/msirringhaus/gists{/gist_id}","starred_url":"https://api.github.com/users/msirringhaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msirringhaus/subscriptions","organizations_url":"https://api.github.com/users/msirringhaus/orgs","repos_url":"https://api.github.com/users/msirringhaus/repos","events_url":"https://api.github.com/users/msirringhaus/events{/privacy}","received_events_url":"https://api.github.com/users/msirringhaus/received_events","type":"User","site_admin":false},"html_url":"https://github.com/msirringhaus/xi-term","description":"A terminal frontend for Xi","fork":true,"url":"https://api.github.com/repos/msirringhaus/xi-term","forks_url":"https://api.github.com/repos/msirringhaus/xi-term/forks","keys_url":"https://api.github.com/repos/msirringhaus/xi-term/keys{/key_id}","collaborators_url":"https://api.github.com/repos/msirringhaus/xi-term/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/msirringhaus/xi-term/teams","hooks_url":"https://api.github.com/repos/msirringhaus/xi-term/hooks","issue_events_url":"https://api.github.com/repos/msirringhaus/xi-term/issues/events{/number}","events_url":"https://api.github.com/repos/msirringhaus/xi-term/events","assignees_url":"https://api.github.com/repos/msirringhaus/xi-term/assignees{/user}","branches_url":"https://api.github.com/repos/msirringhaus/xi-term/branches{/branch}","tags_url":"https://api.github.com/repos/msirringhaus/xi-term/tags","blobs_url":"https://api.github.com/repos/msirringhaus/xi-term/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/msirringhaus/xi-term/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/msirringhaus/xi-term/git/refs{/sha}","trees_url":"https://api.github.com/repos/msirringhaus/xi-term/git/trees{/sha}","statuses_url":"https://api.github.com/repos/msirringhaus/xi-term/statuses/{sha}","languages_url":"https://api.github.com/repos/msirringhaus/xi-term/languages","stargazers_url":"https://api.github.com/repos/msirringhaus/xi-term/stargazers","contributors_url":"https://api.github.com/repos/msirringhaus/xi-term/contributors","subscribers_url":"https://api.github.com/repos/msirringhaus/xi-term/subscribers","subscription_url":"https://api.github.com/repos/msirringhaus/xi-term/subscription","commits_url":"https://api.github.com/repos/msirringhaus/xi-term/commits{/sha}","git_commits_url":"https://api.github.com/repos/msirringhaus/xi-term/git/commits{/sha}","comments_url":"https://api.github.com/repos/msirringhaus/xi-term/comments{/number}","issue_comment_url":"https://api.github.com/repos/msirringhaus/xi-term/issues/comments{/number}","contents_url":"https://api.github.com/repos/msirringhaus/xi-term/contents/{+path}","compare_url":"https://api.github.com/repos/msirringhaus/xi-term/compare/{base}...{head}","merges_url":"https://api.github.com/repos/msirringhaus/xi-term/merges","archive_url":"https://api.github.com/repos/msirringhaus/xi-term/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/msirringhaus/xi-term/downloads","issues_url":"https://api.github.com/repos/msirringhaus/xi-term/issues{/number}","pulls_url":"https://api.github.com/repos/msirringhaus/xi-term/pulls{/number}","milestones_url":"https://api.github.com/repos/msirringhaus/xi-term/milestones{/number}","notifications_url":"https://api.github.com/repos/msirringhaus/xi-term/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/msirringhaus/xi-term/labels{/name}","releases_url":"https://api.github.com/repos/msirringhaus/xi-term/releases{/id}","deployments_url":"https://api.github.com/repos/msirringhaus/xi-term/deployments","created_at":"2019-06-24T06:48:12Z","updated_at":"2019-06-30T09:07:49Z","pushed_at":"2019-06-30T09:07:47Z","git_url":"git://github.com/msirringhaus/xi-term.git","ssh_url":"git@github.com:msirringhaus/xi-term.git","clone_url":"https://github.com/msirringhaus/xi-term.git","svn_url":"https://github.com/msirringhaus/xi-term","homepage":"","size":1038,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"xi-frontend:master","ref":"master","sha":"735568fe99553cd8542079cb554c12f911dbeeca","user":{"login":"xi-frontend","id":37024005,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3MDI0MDA1","avatar_url":"https://avatars3.githubusercontent.com/u/37024005?v=4","gravatar_id":"","url":"https://api.github.com/users/xi-frontend","html_url":"https://github.com/xi-frontend","followers_url":"https://api.github.com/users/xi-frontend/followers","following_url":"https://api.github.com/users/xi-frontend/following{/other_user}","gists_url":"https://api.github.com/users/xi-frontend/gists{/gist_id}","starred_url":"https://api.github.com/users/xi-frontend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xi-frontend/subscriptions","organizations_url":"https://api.github.com/users/xi-frontend/orgs","repos_url":"https://api.github.com/users/xi-frontend/repos","events_url":"https://api.github.com/users/xi-frontend/events{/privacy}","received_events_url":"https://api.github.com/users/xi-frontend/received_events","type":"Organization","site_admin":false},"repo":{"id":67304906,"node_id":"MDEwOlJlcG9zaXRvcnk2NzMwNDkwNg==","name":"xi-term","full_name":"xi-frontend/xi-term","private":false,"owner":{"login":"xi-frontend","id":37024005,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3MDI0MDA1","avatar_url":"https://avatars3.githubusercontent.com/u/37024005?v=4","gravatar_id":"","url":"https://api.github.com/users/xi-frontend","html_url":"https://github.com/xi-frontend","followers_url":"https://api.github.com/users/xi-frontend/followers","following_url":"https://api.github.com/users/xi-frontend/following{/other_user}","gists_url":"https://api.github.com/users/xi-frontend/gists{/gist_id}","starred_url":"https://api.github.com/users/xi-frontend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xi-frontend/subscriptions","organizations_url":"https://api.github.com/users/xi-frontend/orgs","repos_url":"https://api.github.com/users/xi-frontend/repos","events_url":"https://api.github.com/users/xi-frontend/events{/privacy}","received_events_url":"https://api.github.com/users/xi-frontend/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/xi-frontend/xi-term","description":"A terminal frontend for Xi","fork":false,"url":"https://api.github.com/repos/xi-frontend/xi-term","forks_url":"https://api.github.com/repos/xi-frontend/xi-term/forks","keys_url":"https://api.github.com/repos/xi-frontend/xi-term/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xi-frontend/xi-term/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xi-frontend/xi-term/teams","hooks_url":"https://api.github.com/repos/xi-frontend/xi-term/hooks","issue_events_url":"https://api.github.com/repos/xi-frontend/xi-term/issues/events{/number}","events_url":"https://api.github.com/repos/xi-frontend/xi-term/events","assignees_url":"https://api.github.com/repos/xi-frontend/xi-term/assignees{/user}","branches_url":"https://api.github.com/repos/xi-frontend/xi-term/branches{/branch}","tags_url":"https://api.github.com/repos/xi-frontend/xi-term/tags","blobs_url":"https://api.github.com/repos/xi-frontend/xi-term/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xi-frontend/xi-term/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xi-frontend/xi-term/git/refs{/sha}","trees_url":"https://api.github.com/repos/xi-frontend/xi-term/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xi-frontend/xi-term/statuses/{sha}","languages_url":"https://api.github.com/repos/xi-frontend/xi-term/languages","stargazers_url":"https://api.github.com/repos/xi-frontend/xi-term/stargazers","contributors_url":"https://api.github.com/repos/xi-frontend/xi-term/contributors","subscribers_url":"https://api.github.com/repos/xi-frontend/xi-term/subscribers","subscription_url":"https://api.github.com/repos/xi-frontend/xi-term/subscription","commits_url":"https://api.github.com/repos/xi-frontend/xi-term/commits{/sha}","git_commits_url":"https://api.github.com/repos/xi-frontend/xi-term/git/commits{/sha}","comments_url":"https://api.github.com/repos/xi-frontend/xi-term/comments{/number}","issue_comment_url":"https://api.github.com/repos/xi-frontend/xi-term/issues/comments{/number}","contents_url":"https://api.github.com/repos/xi-frontend/xi-term/contents/{+path}","compare_url":"https://api.github.com/repos/xi-frontend/xi-term/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xi-frontend/xi-term/merges","archive_url":"https://api.github.com/repos/xi-frontend/xi-term/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xi-frontend/xi-term/downloads","issues_url":"https://api.github.com/repos/xi-frontend/xi-term/issues{/number}","pulls_url":"https://api.github.com/repos/xi-frontend/xi-term/pulls{/number}","milestones_url":"https://api.github.com/repos/xi-frontend/xi-term/milestones{/number}","notifications_url":"https://api.github.com/repos/xi-frontend/xi-term/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xi-frontend/xi-term/labels{/name}","releases_url":"https://api.github.com/repos/xi-frontend/xi-term/releases{/id}","deployments_url":"https://api.github.com/repos/xi-frontend/xi-term/deployments","created_at":"2016-09-03T18:15:27Z","updated_at":"2019-07-01T08:17:20Z","pushed_at":"2019-07-01T08:19:26Z","git_url":"git://github.com/xi-frontend/xi-term.git","ssh_url":"git@github.com:xi-frontend/xi-term.git","clone_url":"https://github.com/xi-frontend/xi-term.git","svn_url":"https://github.com/xi-frontend/xi-term","homepage":"","size":911,"stargazers_count":334,"watchers_count":334,"language":"Rust","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":36,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":13,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":36,"open_issues":13,"watchers":334,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xi-frontend/xi-term/pulls/109"},"html":{"href":"https://github.com/xi-frontend/xi-term/pull/109"},"issue":{"href":"https://api.github.com/repos/xi-frontend/xi-term/issues/109"},"comments":{"href":"https://api.github.com/repos/xi-frontend/xi-term/issues/109/comments"},"review_comments":{"href":"https://api.github.com/repos/xi-frontend/xi-term/pulls/109/comments"},"review_comment":{"href":"https://api.github.com/repos/xi-frontend/xi-term/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xi-frontend/xi-term/pulls/109/commits"},"statuses":{"href":"https://api.github.com/repos/xi-frontend/xi-term/statuses/88c8b353378d37304378746d2d53e068f7fe0f9c"}},"author_association":"NONE"}}
{"actor":{"display_login":"msirringhaus"}}