{"action":"created","comment":{"url":"https://api.github.com/repos/google/ci_edit/pulls/comments/132516931","pull_request_review_id":55606852,"id":132516931,"diff_hunk":"@@ -550,30 +550,75 @@ def fileLoad(self):\n       self.dataToLines()\n     else:\n       self.parser = None\n+    app.history.loadUserHistory(self.fullPath)","path":"app/actions.py","position":4,"original_position":4,"commit_id":"1101e4e72a1b76b6ee05e283fe3dae78ad39e374","original_commit_id":"1101e4e72a1b76b6ee05e283fe3dae78ad39e374","user":{"login":"dschuyler","id":13840539,"avatar_url":"https://avatars2.githubusercontent.com/u/13840539?v=4","gravatar_id":"","url":"https://api.github.com/users/dschuyler","html_url":"https://github.com/dschuyler","followers_url":"https://api.github.com/users/dschuyler/followers","following_url":"https://api.github.com/users/dschuyler/following{/other_user}","gists_url":"https://api.github.com/users/dschuyler/gists{/gist_id}","starred_url":"https://api.github.com/users/dschuyler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dschuyler/subscriptions","organizations_url":"https://api.github.com/users/dschuyler/orgs","repos_url":"https://api.github.com/users/dschuyler/repos","events_url":"https://api.github.com/users/dschuyler/events{/privacy}","received_events_url":"https://api.github.com/users/dschuyler/received_events","type":"User","site_admin":false},"body":"Can this get large? Should we be loading it on each text file load?","created_at":"2017-08-10T17:27:13Z","updated_at":"2017-08-10T17:29:24Z","html_url":"https://github.com/google/ci_edit/pull/36#discussion_r132516931","pull_request_url":"https://api.github.com/repos/google/ci_edit/pulls/36","_links":{"self":{"href":"https://api.github.com/repos/google/ci_edit/pulls/comments/132516931"},"html":{"href":"https://github.com/google/ci_edit/pull/36#discussion_r132516931"},"pull_request":{"href":"https://api.github.com/repos/google/ci_edit/pulls/36"}}},"pull_request":{"url":"https://api.github.com/repos/google/ci_edit/pulls/36","id":133019870,"html_url":"https://github.com/google/ci_edit/pull/36","diff_url":"https://github.com/google/ci_edit/pull/36.diff","patch_url":"https://github.com/google/ci_edit/pull/36.patch","issue_url":"https://api.github.com/repos/google/ci_edit/issues/36","number":36,"state":"open","locked":false,"title":"Add redo chain to history","user":{"login":"aaxu","id":19481525,"avatar_url":"https://avatars2.githubusercontent.com/u/19481525?v=4","gravatar_id":"","url":"https://api.github.com/users/aaxu","html_url":"https://github.com/aaxu","followers_url":"https://api.github.com/users/aaxu/followers","following_url":"https://api.github.com/users/aaxu/following{/other_user}","gists_url":"https://api.github.com/users/aaxu/gists{/gist_id}","starred_url":"https://api.github.com/users/aaxu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaxu/subscriptions","organizations_url":"https://api.github.com/users/aaxu/orgs","repos_url":"https://api.github.com/users/aaxu/repos","events_url":"https://api.github.com/users/aaxu/events{/privacy}","received_events_url":"https://api.github.com/users/aaxu/received_events","type":"User","site_admin":false},"body":"**Features**\r\n* Now, user history is saved when you save a file, rather than when you exit the program.\r\n* When you re-open the file, you will be in the exact same state as before. Highlights, cursor, selectionMode, and redo chains are all preserved, provided that the file was not modified by another program.\r\n* The way I match a file to its history is hashing it using a sha512 function as well as check its file size to see if it was the same as before. This reduces the chance of a collision and also allows the matching to occur even if the user moves the file to another location.\r\n","created_at":"2017-07-28T17:51:45Z","updated_at":"2017-08-10T17:29:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"02b3e7f379452d0329e69db56218e8c3cd333258","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/google/ci_edit/pulls/36/commits","review_comments_url":"https://api.github.com/repos/google/ci_edit/pulls/36/comments","review_comment_url":"https://api.github.com/repos/google/ci_edit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/google/ci_edit/issues/36/comments","statuses_url":"https://api.github.com/repos/google/ci_edit/statuses/1101e4e72a1b76b6ee05e283fe3dae78ad39e374","head":{"label":"aaxu:bugFix/addRedoChainToHistory","ref":"bugFix/addRedoChainToHistory","sha":"1101e4e72a1b76b6ee05e283fe3dae78ad39e374","user":{"login":"aaxu","id":19481525,"avatar_url":"https://avatars2.githubusercontent.com/u/19481525?v=4","gravatar_id":"","url":"https://api.github.com/users/aaxu","html_url":"https://github.com/aaxu","followers_url":"https://api.github.com/users/aaxu/followers","following_url":"https://api.github.com/users/aaxu/following{/other_user}","gists_url":"https://api.github.com/users/aaxu/gists{/gist_id}","starred_url":"https://api.github.com/users/aaxu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaxu/subscriptions","organizations_url":"https://api.github.com/users/aaxu/orgs","repos_url":"https://api.github.com/users/aaxu/repos","events_url":"https://api.github.com/users/aaxu/events{/privacy}","received_events_url":"https://api.github.com/users/aaxu/received_events","type":"User","site_admin":false},"repo":{"id":93765771,"name":"ci_edit","full_name":"aaxu/ci_edit","owner":{"login":"aaxu","id":19481525,"avatar_url":"https://avatars2.githubusercontent.com/u/19481525?v=4","gravatar_id":"","url":"https://api.github.com/users/aaxu","html_url":"https://github.com/aaxu","followers_url":"https://api.github.com/users/aaxu/followers","following_url":"https://api.github.com/users/aaxu/following{/other_user}","gists_url":"https://api.github.com/users/aaxu/gists{/gist_id}","starred_url":"https://api.github.com/users/aaxu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaxu/subscriptions","organizations_url":"https://api.github.com/users/aaxu/orgs","repos_url":"https://api.github.com/users/aaxu/repos","events_url":"https://api.github.com/users/aaxu/events{/privacy}","received_events_url":"https://api.github.com/users/aaxu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aaxu/ci_edit","description":null,"fork":true,"url":"https://api.github.com/repos/aaxu/ci_edit","forks_url":"https://api.github.com/repos/aaxu/ci_edit/forks","keys_url":"https://api.github.com/repos/aaxu/ci_edit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aaxu/ci_edit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aaxu/ci_edit/teams","hooks_url":"https://api.github.com/repos/aaxu/ci_edit/hooks","issue_events_url":"https://api.github.com/repos/aaxu/ci_edit/issues/events{/number}","events_url":"https://api.github.com/repos/aaxu/ci_edit/events","assignees_url":"https://api.github.com/repos/aaxu/ci_edit/assignees{/user}","branches_url":"https://api.github.com/repos/aaxu/ci_edit/branches{/branch}","tags_url":"https://api.github.com/repos/aaxu/ci_edit/tags","blobs_url":"https://api.github.com/repos/aaxu/ci_edit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aaxu/ci_edit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aaxu/ci_edit/git/refs{/sha}","trees_url":"https://api.github.com/repos/aaxu/ci_edit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aaxu/ci_edit/statuses/{sha}","languages_url":"https://api.github.com/repos/aaxu/ci_edit/languages","stargazers_url":"https://api.github.com/repos/aaxu/ci_edit/stargazers","contributors_url":"https://api.github.com/repos/aaxu/ci_edit/contributors","subscribers_url":"https://api.github.com/repos/aaxu/ci_edit/subscribers","subscription_url":"https://api.github.com/repos/aaxu/ci_edit/subscription","commits_url":"https://api.github.com/repos/aaxu/ci_edit/commits{/sha}","git_commits_url":"https://api.github.com/repos/aaxu/ci_edit/git/commits{/sha}","comments_url":"https://api.github.com/repos/aaxu/ci_edit/comments{/number}","issue_comment_url":"https://api.github.com/repos/aaxu/ci_edit/issues/comments{/number}","contents_url":"https://api.github.com/repos/aaxu/ci_edit/contents/{+path}","compare_url":"https://api.github.com/repos/aaxu/ci_edit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aaxu/ci_edit/merges","archive_url":"https://api.github.com/repos/aaxu/ci_edit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aaxu/ci_edit/downloads","issues_url":"https://api.github.com/repos/aaxu/ci_edit/issues{/number}","pulls_url":"https://api.github.com/repos/aaxu/ci_edit/pulls{/number}","milestones_url":"https://api.github.com/repos/aaxu/ci_edit/milestones{/number}","notifications_url":"https://api.github.com/repos/aaxu/ci_edit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aaxu/ci_edit/labels{/name}","releases_url":"https://api.github.com/repos/aaxu/ci_edit/releases{/id}","deployments_url":"https://api.github.com/repos/aaxu/ci_edit/deployments","created_at":"2017-06-08T15:36:07Z","updated_at":"2017-06-08T15:36:09Z","pushed_at":"2017-08-10T16:10:14Z","git_url":"git://github.com/aaxu/ci_edit.git","ssh_url":"git@github.com:aaxu/ci_edit.git","clone_url":"https://github.com/aaxu/ci_edit.git","svn_url":"https://github.com/aaxu/ci_edit","homepage":null,"size":930,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"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":"google:master","ref":"master","sha":"a9876e7c51709e9042b12fa0e3c7e337ecb3d666","user":{"login":"google","id":1342004,"avatar_url":"https://avatars1.githubusercontent.com/u/1342004?v=4","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":92321329,"name":"ci_edit","full_name":"google/ci_edit","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars1.githubusercontent.com/u/1342004?v=4","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/ci_edit","description":null,"fork":false,"url":"https://api.github.com/repos/google/ci_edit","forks_url":"https://api.github.com/repos/google/ci_edit/forks","keys_url":"https://api.github.com/repos/google/ci_edit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/ci_edit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/ci_edit/teams","hooks_url":"https://api.github.com/repos/google/ci_edit/hooks","issue_events_url":"https://api.github.com/repos/google/ci_edit/issues/events{/number}","events_url":"https://api.github.com/repos/google/ci_edit/events","assignees_url":"https://api.github.com/repos/google/ci_edit/assignees{/user}","branches_url":"https://api.github.com/repos/google/ci_edit/branches{/branch}","tags_url":"https://api.github.com/repos/google/ci_edit/tags","blobs_url":"https://api.github.com/repos/google/ci_edit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/ci_edit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/ci_edit/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/ci_edit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/ci_edit/statuses/{sha}","languages_url":"https://api.github.com/repos/google/ci_edit/languages","stargazers_url":"https://api.github.com/repos/google/ci_edit/stargazers","contributors_url":"https://api.github.com/repos/google/ci_edit/contributors","subscribers_url":"https://api.github.com/repos/google/ci_edit/subscribers","subscription_url":"https://api.github.com/repos/google/ci_edit/subscription","commits_url":"https://api.github.com/repos/google/ci_edit/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/ci_edit/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/ci_edit/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/ci_edit/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/ci_edit/contents/{+path}","compare_url":"https://api.github.com/repos/google/ci_edit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/ci_edit/merges","archive_url":"https://api.github.com/repos/google/ci_edit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/ci_edit/downloads","issues_url":"https://api.github.com/repos/google/ci_edit/issues{/number}","pulls_url":"https://api.github.com/repos/google/ci_edit/pulls{/number}","milestones_url":"https://api.github.com/repos/google/ci_edit/milestones{/number}","notifications_url":"https://api.github.com/repos/google/ci_edit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/ci_edit/labels{/name}","releases_url":"https://api.github.com/repos/google/ci_edit/releases{/id}","deployments_url":"https://api.github.com/repos/google/ci_edit/deployments","created_at":"2017-05-24T18:00:36Z","updated_at":"2017-08-10T16:00:52Z","pushed_at":"2017-08-10T16:10:16Z","git_url":"git://github.com/google/ci_edit.git","ssh_url":"git@github.com:google/ci_edit.git","clone_url":"https://github.com/google/ci_edit.git","svn_url":"https://github.com/google/ci_edit","homepage":null,"size":868,"stargazers_count":15,"watchers_count":15,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":9,"forks":10,"open_issues":9,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/google/ci_edit/pulls/36"},"html":{"href":"https://github.com/google/ci_edit/pull/36"},"issue":{"href":"https://api.github.com/repos/google/ci_edit/issues/36"},"comments":{"href":"https://api.github.com/repos/google/ci_edit/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/google/ci_edit/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/google/ci_edit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/google/ci_edit/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/google/ci_edit/statuses/1101e4e72a1b76b6ee05e283fe3dae78ad39e374"}}}}
{"actor":{"display_login":"dschuyler"}}