{"action":"created","comment":{"url":"https://api.github.com/repos/humphd/brackets/pulls/comments/46690640","id":46690640,"diff_hunk":"@@ -78,6 +78,23 @@ define(function (require, exports, module) {\n             }\n         });\n \n+        // Listen for file rename\n+        BrambleEvents.on(\"fileRenamed\", function(e, oldFilePath, newFilePath) {\n+            console.log(oldFilePath, newFilePath, lastKnownEditorFilePath);\n+            if (oldFilePath === lastKnownEditorFilePath) {\n+                lastKnownEditorFilePath = newFilePath;\n+                var filename = Path.basename(newFilePath);\n+                console.log(filename, newFilePath);","path":"src/extensions/default/bramble/lib/RemoteEvents.js","position":10,"original_position":10,"commit_id":"9fb5d1b9ad3844934dabcf3c869c7692da8a896e","original_commit_id":"9fb5d1b9ad3844934dabcf3c869c7692da8a896e","user":{"login":"humphd","id":427398,"avatar_url":"https://avatars.githubusercontent.com/u/427398?v=3","gravatar_id":"","url":"https://api.github.com/users/humphd","html_url":"https://github.com/humphd","followers_url":"https://api.github.com/users/humphd/followers","following_url":"https://api.github.com/users/humphd/following{/other_user}","gists_url":"https://api.github.com/users/humphd/gists{/gist_id}","starred_url":"https://api.github.com/users/humphd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/humphd/subscriptions","organizations_url":"https://api.github.com/users/humphd/orgs","repos_url":"https://api.github.com/users/humphd/repos","events_url":"https://api.github.com/users/humphd/events{/privacy}","received_events_url":"https://api.github.com/users/humphd/received_events","type":"User","site_admin":false},"body":"Same here.","created_at":"2015-12-04T15:07:53Z","updated_at":"2015-12-04T15:07:53Z","html_url":"https://github.com/humphd/brackets/pull/507#discussion_r46690640","pull_request_url":"https://api.github.com/repos/humphd/brackets/pulls/507","_links":{"self":{"href":"https://api.github.com/repos/humphd/brackets/pulls/comments/46690640"},"html":{"href":"https://github.com/humphd/brackets/pull/507#discussion_r46690640"},"pull_request":{"href":"https://api.github.com/repos/humphd/brackets/pulls/507"}}},"pull_request":{"url":"https://api.github.com/repos/humphd/brackets/pulls/507","id":52070533,"html_url":"https://github.com/humphd/brackets/pull/507","diff_url":"https://github.com/humphd/brackets/pull/507.diff","patch_url":"https://github.com/humphd/brackets/pull/507.patch","issue_url":"https://api.github.com/repos/humphd/brackets/issues/507","number":507,"state":"open","locked":false,"title":"Reflect active file name change on editor","user":{"login":"errietta","id":134585,"avatar_url":"https://avatars.githubusercontent.com/u/134585?v=3","gravatar_id":"","url":"https://api.github.com/users/errietta","html_url":"https://github.com/errietta","followers_url":"https://api.github.com/users/errietta/followers","following_url":"https://api.github.com/users/errietta/following{/other_user}","gists_url":"https://api.github.com/users/errietta/gists{/gist_id}","starred_url":"https://api.github.com/users/errietta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/errietta/subscriptions","organizations_url":"https://api.github.com/users/errietta/orgs","repos_url":"https://api.github.com/users/errietta/repos","events_url":"https://api.github.com/users/errietta/events{/privacy}","received_events_url":"https://api.github.com/users/errietta/received_events","type":"User","site_admin":false},"body":"Closes https://github.com/mozilla/thimble.webmaker.org/issues/1197","created_at":"2015-11-29T20:45:23Z","updated_at":"2015-12-04T15:07:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e75e57547f351a865c078fdf753196655621f20b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/humphd/brackets/pulls/507/commits","review_comments_url":"https://api.github.com/repos/humphd/brackets/pulls/507/comments","review_comment_url":"https://api.github.com/repos/humphd/brackets/pulls/comments{/number}","comments_url":"https://api.github.com/repos/humphd/brackets/issues/507/comments","statuses_url":"https://api.github.com/repos/humphd/brackets/statuses/9fb5d1b9ad3844934dabcf3c869c7692da8a896e","head":{"label":"errietta:errietta/rename","ref":"errietta/rename","sha":"9fb5d1b9ad3844934dabcf3c869c7692da8a896e","user":{"login":"errietta","id":134585,"avatar_url":"https://avatars.githubusercontent.com/u/134585?v=3","gravatar_id":"","url":"https://api.github.com/users/errietta","html_url":"https://github.com/errietta","followers_url":"https://api.github.com/users/errietta/followers","following_url":"https://api.github.com/users/errietta/following{/other_user}","gists_url":"https://api.github.com/users/errietta/gists{/gist_id}","starred_url":"https://api.github.com/users/errietta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/errietta/subscriptions","organizations_url":"https://api.github.com/users/errietta/orgs","repos_url":"https://api.github.com/users/errietta/repos","events_url":"https://api.github.com/users/errietta/events{/privacy}","received_events_url":"https://api.github.com/users/errietta/received_events","type":"User","site_admin":false},"repo":{"id":38703350,"name":"brackets","full_name":"errietta/brackets","owner":{"login":"errietta","id":134585,"avatar_url":"https://avatars.githubusercontent.com/u/134585?v=3","gravatar_id":"","url":"https://api.github.com/users/errietta","html_url":"https://github.com/errietta","followers_url":"https://api.github.com/users/errietta/followers","following_url":"https://api.github.com/users/errietta/following{/other_user}","gists_url":"https://api.github.com/users/errietta/gists{/gist_id}","starred_url":"https://api.github.com/users/errietta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/errietta/subscriptions","organizations_url":"https://api.github.com/users/errietta/orgs","repos_url":"https://api.github.com/users/errietta/repos","events_url":"https://api.github.com/users/errietta/events{/privacy}","received_events_url":"https://api.github.com/users/errietta/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/errietta/brackets","description":"An open source code editor for the web, written in JavaScript, HTML and CSS.","fork":true,"url":"https://api.github.com/repos/errietta/brackets","forks_url":"https://api.github.com/repos/errietta/brackets/forks","keys_url":"https://api.github.com/repos/errietta/brackets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/errietta/brackets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/errietta/brackets/teams","hooks_url":"https://api.github.com/repos/errietta/brackets/hooks","issue_events_url":"https://api.github.com/repos/errietta/brackets/issues/events{/number}","events_url":"https://api.github.com/repos/errietta/brackets/events","assignees_url":"https://api.github.com/repos/errietta/brackets/assignees{/user}","branches_url":"https://api.github.com/repos/errietta/brackets/branches{/branch}","tags_url":"https://api.github.com/repos/errietta/brackets/tags","blobs_url":"https://api.github.com/repos/errietta/brackets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/errietta/brackets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/errietta/brackets/git/refs{/sha}","trees_url":"https://api.github.com/repos/errietta/brackets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/errietta/brackets/statuses/{sha}","languages_url":"https://api.github.com/repos/errietta/brackets/languages","stargazers_url":"https://api.github.com/repos/errietta/brackets/stargazers","contributors_url":"https://api.github.com/repos/errietta/brackets/contributors","subscribers_url":"https://api.github.com/repos/errietta/brackets/subscribers","subscription_url":"https://api.github.com/repos/errietta/brackets/subscription","commits_url":"https://api.github.com/repos/errietta/brackets/commits{/sha}","git_commits_url":"https://api.github.com/repos/errietta/brackets/git/commits{/sha}","comments_url":"https://api.github.com/repos/errietta/brackets/comments{/number}","issue_comment_url":"https://api.github.com/repos/errietta/brackets/issues/comments{/number}","contents_url":"https://api.github.com/repos/errietta/brackets/contents/{+path}","compare_url":"https://api.github.com/repos/errietta/brackets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/errietta/brackets/merges","archive_url":"https://api.github.com/repos/errietta/brackets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/errietta/brackets/downloads","issues_url":"https://api.github.com/repos/errietta/brackets/issues{/number}","pulls_url":"https://api.github.com/repos/errietta/brackets/pulls{/number}","milestones_url":"https://api.github.com/repos/errietta/brackets/milestones{/number}","notifications_url":"https://api.github.com/repos/errietta/brackets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/errietta/brackets/labels{/name}","releases_url":"https://api.github.com/repos/errietta/brackets/releases{/id}","created_at":"2015-07-07T17:23:46Z","updated_at":"2015-07-07T17:23:56Z","pushed_at":"2015-11-29T20:44:57Z","git_url":"git://github.com/errietta/brackets.git","ssh_url":"git@github.com:errietta/brackets.git","clone_url":"https://github.com/errietta/brackets.git","svn_url":"https://github.com/errietta/brackets","homepage":"http://brackets.io","size":79325,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"bramble"}},"base":{"label":"humphd:bramble","ref":"bramble","sha":"76aff3ce4e27103d2245b5be8b009ebb7a5e0d64","user":{"login":"humphd","id":427398,"avatar_url":"https://avatars.githubusercontent.com/u/427398?v=3","gravatar_id":"","url":"https://api.github.com/users/humphd","html_url":"https://github.com/humphd","followers_url":"https://api.github.com/users/humphd/followers","following_url":"https://api.github.com/users/humphd/following{/other_user}","gists_url":"https://api.github.com/users/humphd/gists{/gist_id}","starred_url":"https://api.github.com/users/humphd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/humphd/subscriptions","organizations_url":"https://api.github.com/users/humphd/orgs","repos_url":"https://api.github.com/users/humphd/repos","events_url":"https://api.github.com/users/humphd/events{/privacy}","received_events_url":"https://api.github.com/users/humphd/received_events","type":"User","site_admin":false},"repo":{"id":13729434,"name":"brackets","full_name":"humphd/brackets","owner":{"login":"humphd","id":427398,"avatar_url":"https://avatars.githubusercontent.com/u/427398?v=3","gravatar_id":"","url":"https://api.github.com/users/humphd","html_url":"https://github.com/humphd","followers_url":"https://api.github.com/users/humphd/followers","following_url":"https://api.github.com/users/humphd/following{/other_user}","gists_url":"https://api.github.com/users/humphd/gists{/gist_id}","starred_url":"https://api.github.com/users/humphd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/humphd/subscriptions","organizations_url":"https://api.github.com/users/humphd/orgs","repos_url":"https://api.github.com/users/humphd/repos","events_url":"https://api.github.com/users/humphd/events{/privacy}","received_events_url":"https://api.github.com/users/humphd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/humphd/brackets","description":"An open source code editor for the web, written in JavaScript, HTML and CSS.","fork":true,"url":"https://api.github.com/repos/humphd/brackets","forks_url":"https://api.github.com/repos/humphd/brackets/forks","keys_url":"https://api.github.com/repos/humphd/brackets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/humphd/brackets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/humphd/brackets/teams","hooks_url":"https://api.github.com/repos/humphd/brackets/hooks","issue_events_url":"https://api.github.com/repos/humphd/brackets/issues/events{/number}","events_url":"https://api.github.com/repos/humphd/brackets/events","assignees_url":"https://api.github.com/repos/humphd/brackets/assignees{/user}","branches_url":"https://api.github.com/repos/humphd/brackets/branches{/branch}","tags_url":"https://api.github.com/repos/humphd/brackets/tags","blobs_url":"https://api.github.com/repos/humphd/brackets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/humphd/brackets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/humphd/brackets/git/refs{/sha}","trees_url":"https://api.github.com/repos/humphd/brackets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/humphd/brackets/statuses/{sha}","languages_url":"https://api.github.com/repos/humphd/brackets/languages","stargazers_url":"https://api.github.com/repos/humphd/brackets/stargazers","contributors_url":"https://api.github.com/repos/humphd/brackets/contributors","subscribers_url":"https://api.github.com/repos/humphd/brackets/subscribers","subscription_url":"https://api.github.com/repos/humphd/brackets/subscription","commits_url":"https://api.github.com/repos/humphd/brackets/commits{/sha}","git_commits_url":"https://api.github.com/repos/humphd/brackets/git/commits{/sha}","comments_url":"https://api.github.com/repos/humphd/brackets/comments{/number}","issue_comment_url":"https://api.github.com/repos/humphd/brackets/issues/comments{/number}","contents_url":"https://api.github.com/repos/humphd/brackets/contents/{+path}","compare_url":"https://api.github.com/repos/humphd/brackets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/humphd/brackets/merges","archive_url":"https://api.github.com/repos/humphd/brackets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/humphd/brackets/downloads","issues_url":"https://api.github.com/repos/humphd/brackets/issues{/number}","pulls_url":"https://api.github.com/repos/humphd/brackets/pulls{/number}","milestones_url":"https://api.github.com/repos/humphd/brackets/milestones{/number}","notifications_url":"https://api.github.com/repos/humphd/brackets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/humphd/brackets/labels{/name}","releases_url":"https://api.github.com/repos/humphd/brackets/releases{/id}","created_at":"2013-10-21T00:12:49Z","updated_at":"2015-11-08T15:59:59Z","pushed_at":"2015-12-03T22:39:35Z","git_url":"git://github.com/humphd/brackets.git","ssh_url":"git@github.com:humphd/brackets.git","clone_url":"https://github.com/humphd/brackets.git","svn_url":"https://github.com/humphd/brackets","homepage":"http://brackets.io","size":86840,"stargazers_count":41,"watchers_count":41,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":40,"mirror_url":null,"open_issues_count":44,"forks":40,"open_issues":44,"watchers":41,"default_branch":"bramble"}},"_links":{"self":{"href":"https://api.github.com/repos/humphd/brackets/pulls/507"},"html":{"href":"https://github.com/humphd/brackets/pull/507"},"issue":{"href":"https://api.github.com/repos/humphd/brackets/issues/507"},"comments":{"href":"https://api.github.com/repos/humphd/brackets/issues/507/comments"},"review_comments":{"href":"https://api.github.com/repos/humphd/brackets/pulls/507/comments"},"review_comment":{"href":"https://api.github.com/repos/humphd/brackets/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/humphd/brackets/pulls/507/commits"},"statuses":{"href":"https://api.github.com/repos/humphd/brackets/statuses/9fb5d1b9ad3844934dabcf3c869c7692da8a896e"}}}}