{"action":"created","comment":{"url":"https://api.github.com/repos/sagemathinc/smc/pulls/comments/77277620","id":77277620,"diff_hunk":"@@ -194,6 +194,13 @@ class ProjectActions extends Actions\n                                 @_project().show_editor_chat_window(opts.path)\n                             if opts.foreground\n                                 @set_current_path(misc.path_split(opts.path).head, update_file_listing=false)\n+        # log file opening to HTML5 storage so we can auto reopen tabs at some point\n+        if (!(window.localStorage.getItem(\"opened_files\")))\n+            window.localStorage.setItem(\"opened_files\", \"[]\")\n+        opened_files = JSON.parse(window.localStorage.getItem(\"opened_files\"))\n+        console.log('opened_files:', window.localStorage.getItem(\"opened_files\"))\n+        if (!(window.localStorage.getItem(\"opened_files\").indexOf(JSON.stringify({'project_id': @project_id, 'path': opts.path})) > -1))\n+            opened_files.push({'project_id': @project_id, 'path': opts.path})","path":"src/smc-webapp/project_store.coffee","position":10,"original_position":10,"commit_id":"7517b302617257ea48f307caffc64aa67edd1b28","original_commit_id":"7517b302617257ea48f307caffc64aa67edd1b28","user":{"login":"williamstein","id":1276278,"avatar_url":"https://avatars.githubusercontent.com/u/1276278?v=3","gravatar_id":"","url":"https://api.github.com/users/williamstein","html_url":"https://github.com/williamstein","followers_url":"https://api.github.com/users/williamstein/followers","following_url":"https://api.github.com/users/williamstein/following{/other_user}","gists_url":"https://api.github.com/users/williamstein/gists{/gist_id}","starred_url":"https://api.github.com/users/williamstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/williamstein/subscriptions","organizations_url":"https://api.github.com/users/williamstein/orgs","repos_url":"https://api.github.com/users/williamstein/repos","events_url":"https://api.github.com/users/williamstein/events{/privacy}","received_events_url":"https://api.github.com/users/williamstein/received_events","type":"User","site_admin":false},"body":"But then you don't save opened_files...?  So you just pushed a bunch to it, which is thrown away?  I'm confused.","created_at":"2016-09-02T00:31:24Z","updated_at":"2016-09-02T00:31:24Z","html_url":"https://github.com/sagemathinc/smc/pull/148#discussion_r77277620","pull_request_url":"https://api.github.com/repos/sagemathinc/smc/pulls/148","_links":{"self":{"href":"https://api.github.com/repos/sagemathinc/smc/pulls/comments/77277620"},"html":{"href":"https://github.com/sagemathinc/smc/pull/148#discussion_r77277620"},"pull_request":{"href":"https://api.github.com/repos/sagemathinc/smc/pulls/148"}}},"pull_request":{"url":"https://api.github.com/repos/sagemathinc/smc/pulls/148","id":83052199,"html_url":"https://github.com/sagemathinc/smc/pull/148","diff_url":"https://github.com/sagemathinc/smc/pull/148.diff","patch_url":"https://github.com/sagemathinc/smc/pull/148.patch","issue_url":"https://api.github.com/repos/sagemathinc/smc/issues/148","number":148,"state":"open","locked":false,"title":"Remember all tabs when refreshing","user":{"login":"timothyclemansinsea","id":12617436,"avatar_url":"https://avatars.githubusercontent.com/u/12617436?v=3","gravatar_id":"","url":"https://api.github.com/users/timothyclemansinsea","html_url":"https://github.com/timothyclemansinsea","followers_url":"https://api.github.com/users/timothyclemansinsea/followers","following_url":"https://api.github.com/users/timothyclemansinsea/following{/other_user}","gists_url":"https://api.github.com/users/timothyclemansinsea/gists{/gist_id}","starred_url":"https://api.github.com/users/timothyclemansinsea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timothyclemansinsea/subscriptions","organizations_url":"https://api.github.com/users/timothyclemansinsea/orgs","repos_url":"https://api.github.com/users/timothyclemansinsea/repos","events_url":"https://api.github.com/users/timothyclemansinsea/events{/privacy}","received_events_url":"https://api.github.com/users/timothyclemansinsea/received_events","type":"User","site_admin":false},"body":"Whenever there's a new version of SMC, I am asked to do a 'hard' refresh. Once SMC restarts, it is kind enough to remember the project and file I was working on, but totally forgets all other files and projects. I would like to have it remember everything that is open. Thanks.","created_at":"2016-08-29T06:51:24Z","updated_at":"2016-09-02T00:31:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"013bb818dd1f9e88e383cf54c028d0f75ee0e836","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sagemathinc/smc/pulls/148/commits","review_comments_url":"https://api.github.com/repos/sagemathinc/smc/pulls/148/comments","review_comment_url":"https://api.github.com/repos/sagemathinc/smc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sagemathinc/smc/issues/148/comments","statuses_url":"https://api.github.com/repos/sagemathinc/smc/statuses/7517b302617257ea48f307caffc64aa67edd1b28","head":{"label":"timothyclemansinsea:upstream_issue_148","ref":"upstream_issue_148","sha":"7517b302617257ea48f307caffc64aa67edd1b28","user":{"login":"timothyclemansinsea","id":12617436,"avatar_url":"https://avatars.githubusercontent.com/u/12617436?v=3","gravatar_id":"","url":"https://api.github.com/users/timothyclemansinsea","html_url":"https://github.com/timothyclemansinsea","followers_url":"https://api.github.com/users/timothyclemansinsea/followers","following_url":"https://api.github.com/users/timothyclemansinsea/following{/other_user}","gists_url":"https://api.github.com/users/timothyclemansinsea/gists{/gist_id}","starred_url":"https://api.github.com/users/timothyclemansinsea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timothyclemansinsea/subscriptions","organizations_url":"https://api.github.com/users/timothyclemansinsea/orgs","repos_url":"https://api.github.com/users/timothyclemansinsea/repos","events_url":"https://api.github.com/users/timothyclemansinsea/events{/privacy}","received_events_url":"https://api.github.com/users/timothyclemansinsea/received_events","type":"User","site_admin":false},"repo":{"id":59337310,"name":"smc","full_name":"timothyclemansinsea/smc","owner":{"login":"timothyclemansinsea","id":12617436,"avatar_url":"https://avatars.githubusercontent.com/u/12617436?v=3","gravatar_id":"","url":"https://api.github.com/users/timothyclemansinsea","html_url":"https://github.com/timothyclemansinsea","followers_url":"https://api.github.com/users/timothyclemansinsea/followers","following_url":"https://api.github.com/users/timothyclemansinsea/following{/other_user}","gists_url":"https://api.github.com/users/timothyclemansinsea/gists{/gist_id}","starred_url":"https://api.github.com/users/timothyclemansinsea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timothyclemansinsea/subscriptions","organizations_url":"https://api.github.com/users/timothyclemansinsea/orgs","repos_url":"https://api.github.com/users/timothyclemansinsea/repos","events_url":"https://api.github.com/users/timothyclemansinsea/events{/privacy}","received_events_url":"https://api.github.com/users/timothyclemansinsea/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/timothyclemansinsea/smc","description":"SageMathCloud's complete current source code repository -- use SMC at ","fork":true,"url":"https://api.github.com/repos/timothyclemansinsea/smc","forks_url":"https://api.github.com/repos/timothyclemansinsea/smc/forks","keys_url":"https://api.github.com/repos/timothyclemansinsea/smc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/timothyclemansinsea/smc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/timothyclemansinsea/smc/teams","hooks_url":"https://api.github.com/repos/timothyclemansinsea/smc/hooks","issue_events_url":"https://api.github.com/repos/timothyclemansinsea/smc/issues/events{/number}","events_url":"https://api.github.com/repos/timothyclemansinsea/smc/events","assignees_url":"https://api.github.com/repos/timothyclemansinsea/smc/assignees{/user}","branches_url":"https://api.github.com/repos/timothyclemansinsea/smc/branches{/branch}","tags_url":"https://api.github.com/repos/timothyclemansinsea/smc/tags","blobs_url":"https://api.github.com/repos/timothyclemansinsea/smc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/timothyclemansinsea/smc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/timothyclemansinsea/smc/git/refs{/sha}","trees_url":"https://api.github.com/repos/timothyclemansinsea/smc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/timothyclemansinsea/smc/statuses/{sha}","languages_url":"https://api.github.com/repos/timothyclemansinsea/smc/languages","stargazers_url":"https://api.github.com/repos/timothyclemansinsea/smc/stargazers","contributors_url":"https://api.github.com/repos/timothyclemansinsea/smc/contributors","subscribers_url":"https://api.github.com/repos/timothyclemansinsea/smc/subscribers","subscription_url":"https://api.github.com/repos/timothyclemansinsea/smc/subscription","commits_url":"https://api.github.com/repos/timothyclemansinsea/smc/commits{/sha}","git_commits_url":"https://api.github.com/repos/timothyclemansinsea/smc/git/commits{/sha}","comments_url":"https://api.github.com/repos/timothyclemansinsea/smc/comments{/number}","issue_comment_url":"https://api.github.com/repos/timothyclemansinsea/smc/issues/comments{/number}","contents_url":"https://api.github.com/repos/timothyclemansinsea/smc/contents/{+path}","compare_url":"https://api.github.com/repos/timothyclemansinsea/smc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/timothyclemansinsea/smc/merges","archive_url":"https://api.github.com/repos/timothyclemansinsea/smc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/timothyclemansinsea/smc/downloads","issues_url":"https://api.github.com/repos/timothyclemansinsea/smc/issues{/number}","pulls_url":"https://api.github.com/repos/timothyclemansinsea/smc/pulls{/number}","milestones_url":"https://api.github.com/repos/timothyclemansinsea/smc/milestones{/number}","notifications_url":"https://api.github.com/repos/timothyclemansinsea/smc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/timothyclemansinsea/smc/labels{/name}","releases_url":"https://api.github.com/repos/timothyclemansinsea/smc/releases{/id}","deployments_url":"https://api.github.com/repos/timothyclemansinsea/smc/deployments","created_at":"2016-05-21T02:20:17Z","updated_at":"2016-05-21T02:20:19Z","pushed_at":"2016-08-30T21:29:41Z","git_url":"git://github.com/timothyclemansinsea/smc.git","ssh_url":"git@github.com:timothyclemansinsea/smc.git","clone_url":"https://github.com/timothyclemansinsea/smc.git","svn_url":"https://github.com/timothyclemansinsea/smc","homepage":"https://cloud.sagemath.com","size":168654,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","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":"sagemathinc:master","ref":"master","sha":"06306abf22decde70c5aa334ec7c618cdc4db1a6","user":{"login":"sagemathinc","id":11307305,"avatar_url":"https://avatars.githubusercontent.com/u/11307305?v=3","gravatar_id":"","url":"https://api.github.com/users/sagemathinc","html_url":"https://github.com/sagemathinc","followers_url":"https://api.github.com/users/sagemathinc/followers","following_url":"https://api.github.com/users/sagemathinc/following{/other_user}","gists_url":"https://api.github.com/users/sagemathinc/gists{/gist_id}","starred_url":"https://api.github.com/users/sagemathinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagemathinc/subscriptions","organizations_url":"https://api.github.com/users/sagemathinc/orgs","repos_url":"https://api.github.com/users/sagemathinc/repos","events_url":"https://api.github.com/users/sagemathinc/events{/privacy}","received_events_url":"https://api.github.com/users/sagemathinc/received_events","type":"Organization","site_admin":false},"repo":{"id":32500369,"name":"smc","full_name":"sagemathinc/smc","owner":{"login":"sagemathinc","id":11307305,"avatar_url":"https://avatars.githubusercontent.com/u/11307305?v=3","gravatar_id":"","url":"https://api.github.com/users/sagemathinc","html_url":"https://github.com/sagemathinc","followers_url":"https://api.github.com/users/sagemathinc/followers","following_url":"https://api.github.com/users/sagemathinc/following{/other_user}","gists_url":"https://api.github.com/users/sagemathinc/gists{/gist_id}","starred_url":"https://api.github.com/users/sagemathinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagemathinc/subscriptions","organizations_url":"https://api.github.com/users/sagemathinc/orgs","repos_url":"https://api.github.com/users/sagemathinc/repos","events_url":"https://api.github.com/users/sagemathinc/events{/privacy}","received_events_url":"https://api.github.com/users/sagemathinc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sagemathinc/smc","description":"SageMathCloud's complete current source code repository -- use SMC at ","fork":false,"url":"https://api.github.com/repos/sagemathinc/smc","forks_url":"https://api.github.com/repos/sagemathinc/smc/forks","keys_url":"https://api.github.com/repos/sagemathinc/smc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sagemathinc/smc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sagemathinc/smc/teams","hooks_url":"https://api.github.com/repos/sagemathinc/smc/hooks","issue_events_url":"https://api.github.com/repos/sagemathinc/smc/issues/events{/number}","events_url":"https://api.github.com/repos/sagemathinc/smc/events","assignees_url":"https://api.github.com/repos/sagemathinc/smc/assignees{/user}","branches_url":"https://api.github.com/repos/sagemathinc/smc/branches{/branch}","tags_url":"https://api.github.com/repos/sagemathinc/smc/tags","blobs_url":"https://api.github.com/repos/sagemathinc/smc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sagemathinc/smc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sagemathinc/smc/git/refs{/sha}","trees_url":"https://api.github.com/repos/sagemathinc/smc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sagemathinc/smc/statuses/{sha}","languages_url":"https://api.github.com/repos/sagemathinc/smc/languages","stargazers_url":"https://api.github.com/repos/sagemathinc/smc/stargazers","contributors_url":"https://api.github.com/repos/sagemathinc/smc/contributors","subscribers_url":"https://api.github.com/repos/sagemathinc/smc/subscribers","subscription_url":"https://api.github.com/repos/sagemathinc/smc/subscription","commits_url":"https://api.github.com/repos/sagemathinc/smc/commits{/sha}","git_commits_url":"https://api.github.com/repos/sagemathinc/smc/git/commits{/sha}","comments_url":"https://api.github.com/repos/sagemathinc/smc/comments{/number}","issue_comment_url":"https://api.github.com/repos/sagemathinc/smc/issues/comments{/number}","contents_url":"https://api.github.com/repos/sagemathinc/smc/contents/{+path}","compare_url":"https://api.github.com/repos/sagemathinc/smc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sagemathinc/smc/merges","archive_url":"https://api.github.com/repos/sagemathinc/smc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sagemathinc/smc/downloads","issues_url":"https://api.github.com/repos/sagemathinc/smc/issues{/number}","pulls_url":"https://api.github.com/repos/sagemathinc/smc/pulls{/number}","milestones_url":"https://api.github.com/repos/sagemathinc/smc/milestones{/number}","notifications_url":"https://api.github.com/repos/sagemathinc/smc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sagemathinc/smc/labels{/name}","releases_url":"https://api.github.com/repos/sagemathinc/smc/releases{/id}","deployments_url":"https://api.github.com/repos/sagemathinc/smc/deployments","created_at":"2015-03-19T04:16:53Z","updated_at":"2016-09-01T19:22:07Z","pushed_at":"2016-09-02T00:25:16Z","git_url":"git://github.com/sagemathinc/smc.git","ssh_url":"git@github.com:sagemathinc/smc.git","clone_url":"https://github.com/sagemathinc/smc.git","svn_url":"https://github.com/sagemathinc/smc","homepage":"https://cloud.sagemath.com","size":169484,"stargazers_count":209,"watchers_count":209,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":41,"mirror_url":null,"open_issues_count":504,"forks":41,"open_issues":504,"watchers":209,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sagemathinc/smc/pulls/148"},"html":{"href":"https://github.com/sagemathinc/smc/pull/148"},"issue":{"href":"https://api.github.com/repos/sagemathinc/smc/issues/148"},"comments":{"href":"https://api.github.com/repos/sagemathinc/smc/issues/148/comments"},"review_comments":{"href":"https://api.github.com/repos/sagemathinc/smc/pulls/148/comments"},"review_comment":{"href":"https://api.github.com/repos/sagemathinc/smc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sagemathinc/smc/pulls/148/commits"},"statuses":{"href":"https://api.github.com/repos/sagemathinc/smc/statuses/7517b302617257ea48f307caffc64aa67edd1b28"}}}}
{"actor":{"display_login":"williamstein"}}