{"action":"created","comment":{"url":"https://api.github.com/repos/twosigma/beaker-notebook/pulls/comments/57425417","id":57425417,"diff_hunk":"@@ -417,7 +417,8 @@\n               //codecomplete is up, skip\n               return;\n             }\n-            scope.cm.execCommand('goDocStart');\n+\n+            scope.cm.setSelection({line: 0, ch: 0 }, {line: 0, ch: 0 }, {scroll: false});","path":"core/src/main/web/app/mainapp/components/notebook/codecell-directive.js","position":6,"original_position":6,"commit_id":"619b474726ba939509b734500bac426dd081c2d7","original_commit_id":"619b474726ba939509b734500bac426dd081c2d7","user":{"login":"kpaharelau","id":13516511,"avatar_url":"https://avatars.githubusercontent.com/u/13516511?v=3","gravatar_id":"","url":"https://api.github.com/users/kpaharelau","html_url":"https://github.com/kpaharelau","followers_url":"https://api.github.com/users/kpaharelau/followers","following_url":"https://api.github.com/users/kpaharelau/following{/other_user}","gists_url":"https://api.github.com/users/kpaharelau/gists{/gist_id}","starred_url":"https://api.github.com/users/kpaharelau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpaharelau/subscriptions","organizations_url":"https://api.github.com/users/kpaharelau/orgs","repos_url":"https://api.github.com/users/kpaharelau/repos","events_url":"https://api.github.com/users/kpaharelau/events{/privacy}","received_events_url":"https://api.github.com/users/kpaharelau/received_events","type":"User","site_admin":false},"body":"This command  scope.cm.execCommand('goDocStart'); calls  scope.cm.setSelection. See documentation about this function\r\n\r\ndoc.setSelection(anchor: {line, ch}, ?head: {line, ch}, ?options: object)\r\nSet a single selection range. anchor and head should be {line, ch} objects. head defaults to anchor when not given. These options are supported:\r\nscroll: boolean\r\nDetermines whether the selection head should be scrolled into view. Defaults to true.\r\n\r\nWe get scrolling on a big code cells and problem with focusing as result","created_at":"2016-03-25T07:39:19Z","updated_at":"2016-03-25T07:39:19Z","html_url":"https://github.com/twosigma/beaker-notebook/pull/3796#discussion_r57425417","pull_request_url":"https://api.github.com/repos/twosigma/beaker-notebook/pulls/3796","_links":{"self":{"href":"https://api.github.com/repos/twosigma/beaker-notebook/pulls/comments/57425417"},"html":{"href":"https://github.com/twosigma/beaker-notebook/pull/3796#discussion_r57425417"},"pull_request":{"href":"https://api.github.com/repos/twosigma/beaker-notebook/pulls/3796"}}},"pull_request":{"url":"https://api.github.com/repos/twosigma/beaker-notebook/pulls/3796","id":64037150,"html_url":"https://github.com/twosigma/beaker-notebook/pull/3796","diff_url":"https://github.com/twosigma/beaker-notebook/pull/3796.diff","patch_url":"https://github.com/twosigma/beaker-notebook/pull/3796.patch","issue_url":"https://api.github.com/repos/twosigma/beaker-notebook/issues/3796","number":3796,"state":"open","locked":false,"title":"In some cases Run button doesn't work #3795","user":{"login":"kpaharelau","id":13516511,"avatar_url":"https://avatars.githubusercontent.com/u/13516511?v=3","gravatar_id":"","url":"https://api.github.com/users/kpaharelau","html_url":"https://github.com/kpaharelau","followers_url":"https://api.github.com/users/kpaharelau/followers","following_url":"https://api.github.com/users/kpaharelau/following{/other_user}","gists_url":"https://api.github.com/users/kpaharelau/gists{/gist_id}","starred_url":"https://api.github.com/users/kpaharelau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpaharelau/subscriptions","organizations_url":"https://api.github.com/users/kpaharelau/orgs","repos_url":"https://api.github.com/users/kpaharelau/repos","events_url":"https://api.github.com/users/kpaharelau/events{/privacy}","received_events_url":"https://api.github.com/users/kpaharelau/received_events","type":"User","site_admin":false},"body":"use setSelection function instead goDocStart","created_at":"2016-03-24T13:58:20Z","updated_at":"2016-03-25T07:39:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bc55d7b7e8956ca57e9fc8afc819618f63271cc6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/twosigma/beaker-notebook/pulls/3796/commits","review_comments_url":"https://api.github.com/repos/twosigma/beaker-notebook/pulls/3796/comments","review_comment_url":"https://api.github.com/repos/twosigma/beaker-notebook/pulls/comments{/number}","comments_url":"https://api.github.com/repos/twosigma/beaker-notebook/issues/3796/comments","statuses_url":"https://api.github.com/repos/twosigma/beaker-notebook/statuses/619b474726ba939509b734500bac426dd081c2d7","head":{"label":"twosigma:cit/3795","ref":"cit/3795","sha":"619b474726ba939509b734500bac426dd081c2d7","user":{"login":"twosigma","id":4049181,"avatar_url":"https://avatars.githubusercontent.com/u/4049181?v=3","gravatar_id":"","url":"https://api.github.com/users/twosigma","html_url":"https://github.com/twosigma","followers_url":"https://api.github.com/users/twosigma/followers","following_url":"https://api.github.com/users/twosigma/following{/other_user}","gists_url":"https://api.github.com/users/twosigma/gists{/gist_id}","starred_url":"https://api.github.com/users/twosigma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twosigma/subscriptions","organizations_url":"https://api.github.com/users/twosigma/orgs","repos_url":"https://api.github.com/users/twosigma/repos","events_url":"https://api.github.com/users/twosigma/events{/privacy}","received_events_url":"https://api.github.com/users/twosigma/received_events","type":"Organization","site_admin":false},"repo":{"id":14895592,"name":"beaker-notebook","full_name":"twosigma/beaker-notebook","owner":{"login":"twosigma","id":4049181,"avatar_url":"https://avatars.githubusercontent.com/u/4049181?v=3","gravatar_id":"","url":"https://api.github.com/users/twosigma","html_url":"https://github.com/twosigma","followers_url":"https://api.github.com/users/twosigma/followers","following_url":"https://api.github.com/users/twosigma/following{/other_user}","gists_url":"https://api.github.com/users/twosigma/gists{/gist_id}","starred_url":"https://api.github.com/users/twosigma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twosigma/subscriptions","organizations_url":"https://api.github.com/users/twosigma/orgs","repos_url":"https://api.github.com/users/twosigma/repos","events_url":"https://api.github.com/users/twosigma/events{/privacy}","received_events_url":"https://api.github.com/users/twosigma/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/twosigma/beaker-notebook","description":"Web-based, polyglot research platform.","fork":false,"url":"https://api.github.com/repos/twosigma/beaker-notebook","forks_url":"https://api.github.com/repos/twosigma/beaker-notebook/forks","keys_url":"https://api.github.com/repos/twosigma/beaker-notebook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/twosigma/beaker-notebook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/twosigma/beaker-notebook/teams","hooks_url":"https://api.github.com/repos/twosigma/beaker-notebook/hooks","issue_events_url":"https://api.github.com/repos/twosigma/beaker-notebook/issues/events{/number}","events_url":"https://api.github.com/repos/twosigma/beaker-notebook/events","assignees_url":"https://api.github.com/repos/twosigma/beaker-notebook/assignees{/user}","branches_url":"https://api.github.com/repos/twosigma/beaker-notebook/branches{/branch}","tags_url":"https://api.github.com/repos/twosigma/beaker-notebook/tags","blobs_url":"https://api.github.com/repos/twosigma/beaker-notebook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/twosigma/beaker-notebook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/twosigma/beaker-notebook/git/refs{/sha}","trees_url":"https://api.github.com/repos/twosigma/beaker-notebook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/twosigma/beaker-notebook/statuses/{sha}","languages_url":"https://api.github.com/repos/twosigma/beaker-notebook/languages","stargazers_url":"https://api.github.com/repos/twosigma/beaker-notebook/stargazers","contributors_url":"https://api.github.com/repos/twosigma/beaker-notebook/contributors","subscribers_url":"https://api.github.com/repos/twosigma/beaker-notebook/subscribers","subscription_url":"https://api.github.com/repos/twosigma/beaker-notebook/subscription","commits_url":"https://api.github.com/repos/twosigma/beaker-notebook/commits{/sha}","git_commits_url":"https://api.github.com/repos/twosigma/beaker-notebook/git/commits{/sha}","comments_url":"https://api.github.com/repos/twosigma/beaker-notebook/comments{/number}","issue_comment_url":"https://api.github.com/repos/twosigma/beaker-notebook/issues/comments{/number}","contents_url":"https://api.github.com/repos/twosigma/beaker-notebook/contents/{+path}","compare_url":"https://api.github.com/repos/twosigma/beaker-notebook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/twosigma/beaker-notebook/merges","archive_url":"https://api.github.com/repos/twosigma/beaker-notebook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/twosigma/beaker-notebook/downloads","issues_url":"https://api.github.com/repos/twosigma/beaker-notebook/issues{/number}","pulls_url":"https://api.github.com/repos/twosigma/beaker-notebook/pulls{/number}","milestones_url":"https://api.github.com/repos/twosigma/beaker-notebook/milestones{/number}","notifications_url":"https://api.github.com/repos/twosigma/beaker-notebook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/twosigma/beaker-notebook/labels{/name}","releases_url":"https://api.github.com/repos/twosigma/beaker-notebook/releases{/id}","deployments_url":"https://api.github.com/repos/twosigma/beaker-notebook/deployments","created_at":"2013-12-03T14:16:36Z","updated_at":"2016-03-24T22:52:05Z","pushed_at":"2016-03-24T16:01:38Z","git_url":"git://github.com/twosigma/beaker-notebook.git","ssh_url":"git@github.com:twosigma/beaker-notebook.git","clone_url":"https://github.com/twosigma/beaker-notebook.git","svn_url":"https://github.com/twosigma/beaker-notebook","homepage":"http://BeakerNotebook.com","size":283004,"stargazers_count":783,"watchers_count":783,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":103,"mirror_url":null,"open_issues_count":402,"forks":103,"open_issues":402,"watchers":783,"default_branch":"master"}},"base":{"label":"twosigma:master","ref":"master","sha":"c1483964bc4c7a85b54ceb4c01ec5f163acb323e","user":{"login":"twosigma","id":4049181,"avatar_url":"https://avatars.githubusercontent.com/u/4049181?v=3","gravatar_id":"","url":"https://api.github.com/users/twosigma","html_url":"https://github.com/twosigma","followers_url":"https://api.github.com/users/twosigma/followers","following_url":"https://api.github.com/users/twosigma/following{/other_user}","gists_url":"https://api.github.com/users/twosigma/gists{/gist_id}","starred_url":"https://api.github.com/users/twosigma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twosigma/subscriptions","organizations_url":"https://api.github.com/users/twosigma/orgs","repos_url":"https://api.github.com/users/twosigma/repos","events_url":"https://api.github.com/users/twosigma/events{/privacy}","received_events_url":"https://api.github.com/users/twosigma/received_events","type":"Organization","site_admin":false},"repo":{"id":14895592,"name":"beaker-notebook","full_name":"twosigma/beaker-notebook","owner":{"login":"twosigma","id":4049181,"avatar_url":"https://avatars.githubusercontent.com/u/4049181?v=3","gravatar_id":"","url":"https://api.github.com/users/twosigma","html_url":"https://github.com/twosigma","followers_url":"https://api.github.com/users/twosigma/followers","following_url":"https://api.github.com/users/twosigma/following{/other_user}","gists_url":"https://api.github.com/users/twosigma/gists{/gist_id}","starred_url":"https://api.github.com/users/twosigma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twosigma/subscriptions","organizations_url":"https://api.github.com/users/twosigma/orgs","repos_url":"https://api.github.com/users/twosigma/repos","events_url":"https://api.github.com/users/twosigma/events{/privacy}","received_events_url":"https://api.github.com/users/twosigma/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/twosigma/beaker-notebook","description":"Web-based, polyglot research platform.","fork":false,"url":"https://api.github.com/repos/twosigma/beaker-notebook","forks_url":"https://api.github.com/repos/twosigma/beaker-notebook/forks","keys_url":"https://api.github.com/repos/twosigma/beaker-notebook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/twosigma/beaker-notebook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/twosigma/beaker-notebook/teams","hooks_url":"https://api.github.com/repos/twosigma/beaker-notebook/hooks","issue_events_url":"https://api.github.com/repos/twosigma/beaker-notebook/issues/events{/number}","events_url":"https://api.github.com/repos/twosigma/beaker-notebook/events","assignees_url":"https://api.github.com/repos/twosigma/beaker-notebook/assignees{/user}","branches_url":"https://api.github.com/repos/twosigma/beaker-notebook/branches{/branch}","tags_url":"https://api.github.com/repos/twosigma/beaker-notebook/tags","blobs_url":"https://api.github.com/repos/twosigma/beaker-notebook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/twosigma/beaker-notebook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/twosigma/beaker-notebook/git/refs{/sha}","trees_url":"https://api.github.com/repos/twosigma/beaker-notebook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/twosigma/beaker-notebook/statuses/{sha}","languages_url":"https://api.github.com/repos/twosigma/beaker-notebook/languages","stargazers_url":"https://api.github.com/repos/twosigma/beaker-notebook/stargazers","contributors_url":"https://api.github.com/repos/twosigma/beaker-notebook/contributors","subscribers_url":"https://api.github.com/repos/twosigma/beaker-notebook/subscribers","subscription_url":"https://api.github.com/repos/twosigma/beaker-notebook/subscription","commits_url":"https://api.github.com/repos/twosigma/beaker-notebook/commits{/sha}","git_commits_url":"https://api.github.com/repos/twosigma/beaker-notebook/git/commits{/sha}","comments_url":"https://api.github.com/repos/twosigma/beaker-notebook/comments{/number}","issue_comment_url":"https://api.github.com/repos/twosigma/beaker-notebook/issues/comments{/number}","contents_url":"https://api.github.com/repos/twosigma/beaker-notebook/contents/{+path}","compare_url":"https://api.github.com/repos/twosigma/beaker-notebook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/twosigma/beaker-notebook/merges","archive_url":"https://api.github.com/repos/twosigma/beaker-notebook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/twosigma/beaker-notebook/downloads","issues_url":"https://api.github.com/repos/twosigma/beaker-notebook/issues{/number}","pulls_url":"https://api.github.com/repos/twosigma/beaker-notebook/pulls{/number}","milestones_url":"https://api.github.com/repos/twosigma/beaker-notebook/milestones{/number}","notifications_url":"https://api.github.com/repos/twosigma/beaker-notebook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/twosigma/beaker-notebook/labels{/name}","releases_url":"https://api.github.com/repos/twosigma/beaker-notebook/releases{/id}","deployments_url":"https://api.github.com/repos/twosigma/beaker-notebook/deployments","created_at":"2013-12-03T14:16:36Z","updated_at":"2016-03-24T22:52:05Z","pushed_at":"2016-03-24T16:01:38Z","git_url":"git://github.com/twosigma/beaker-notebook.git","ssh_url":"git@github.com:twosigma/beaker-notebook.git","clone_url":"https://github.com/twosigma/beaker-notebook.git","svn_url":"https://github.com/twosigma/beaker-notebook","homepage":"http://BeakerNotebook.com","size":283004,"stargazers_count":783,"watchers_count":783,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":103,"mirror_url":null,"open_issues_count":402,"forks":103,"open_issues":402,"watchers":783,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/twosigma/beaker-notebook/pulls/3796"},"html":{"href":"https://github.com/twosigma/beaker-notebook/pull/3796"},"issue":{"href":"https://api.github.com/repos/twosigma/beaker-notebook/issues/3796"},"comments":{"href":"https://api.github.com/repos/twosigma/beaker-notebook/issues/3796/comments"},"review_comments":{"href":"https://api.github.com/repos/twosigma/beaker-notebook/pulls/3796/comments"},"review_comment":{"href":"https://api.github.com/repos/twosigma/beaker-notebook/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/twosigma/beaker-notebook/pulls/3796/commits"},"statuses":{"href":"https://api.github.com/repos/twosigma/beaker-notebook/statuses/619b474726ba939509b734500bac426dd081c2d7"}}}}