{"action":"created","comment":{"url":"https://api.github.com/repos/chrissimpkins/PyDOC/pulls/comments/238074578","pull_request_review_id":180535855,"id":238074578,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzODA3NDU3OA==","diff_hunk":"@@ -8,58 +8,216 @@\n import urllib\n \n # Python 3 Documentation Search\n+\n+class TensorflowDocCommand(sublime_plugin.TextCommand):\n+    def run(self, edit):\n+        try:\n+            for region in self.view.sel():\n+                if region.begin() == region.end():\n+                    word = self.view.word(region)\n+                else:\n+                    word = region\n+            if not word.empty():\n+                needle = self.view.substr(word)\n+                if len(needle.rstrip()) == 0 or len(needle.lstrip()) == 0:\n+                    print(\"PyDOC Plugin Error: You did not select text for the tensorflow documentation search.  Please select a tensorflow object in your editor and try again.\")\n+                else:\n+                    if version_info[0] == 2:\n+                        # url encode Python 2 interpreter\n+                        needle = urllib.quote_plus(needle)\n+                        url = \"https://www.tensorflow.org/s/results/?q=\" + needle\n+                    else:\n+                        url = \"https://www.tensorflow.org/s/results/?q=\" + needle\n+                        # url encode Python 3 interpreter\n+                        url = urllib.parse.urlparse(url).geturl()\n+                    user_message = \"PyDOC: Performing search for tensorflow documentation on the keyword, '\" + needle + \"'\"","path":"PyDoc.py","position":26,"original_position":26,"commit_id":"cf434847a53c34c2a34748e4e3bfc9181b61f33f","original_commit_id":"cf434847a53c34c2a34748e4e3bfc9181b61f33f","user":{"login":"chrissimpkins","id":4249591,"node_id":"MDQ6VXNlcjQyNDk1OTE=","avatar_url":"https://avatars0.githubusercontent.com/u/4249591?v=4","gravatar_id":"","url":"https://api.github.com/users/chrissimpkins","html_url":"https://github.com/chrissimpkins","followers_url":"https://api.github.com/users/chrissimpkins/followers","following_url":"https://api.github.com/users/chrissimpkins/following{/other_user}","gists_url":"https://api.github.com/users/chrissimpkins/gists{/gist_id}","starred_url":"https://api.github.com/users/chrissimpkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrissimpkins/subscriptions","organizations_url":"https://api.github.com/users/chrissimpkins/orgs","repos_url":"https://api.github.com/users/chrissimpkins/repos","events_url":"https://api.github.com/users/chrissimpkins/events{/privacy}","received_events_url":"https://api.github.com/users/chrissimpkins/received_events","type":"User","site_admin":false},"body":"Ditto.  Let's change `tensorflow` to `TensorFlow`","created_at":"2018-12-01T19:45:44Z","updated_at":"2018-12-01T19:55:32Z","html_url":"https://github.com/chrissimpkins/PyDOC/pull/2#discussion_r238074578","pull_request_url":"https://api.github.com/repos/chrissimpkins/PyDOC/pulls/2","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/chrissimpkins/PyDOC/pulls/comments/238074578"},"html":{"href":"https://github.com/chrissimpkins/PyDOC/pull/2#discussion_r238074578"},"pull_request":{"href":"https://api.github.com/repos/chrissimpkins/PyDOC/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/chrissimpkins/PyDOC/pulls/2","id":235119771,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM1MTE5Nzcx","html_url":"https://github.com/chrissimpkins/PyDOC/pull/2","diff_url":"https://github.com/chrissimpkins/PyDOC/pull/2.diff","patch_url":"https://github.com/chrissimpkins/PyDOC/pull/2.patch","issue_url":"https://api.github.com/repos/chrissimpkins/PyDOC/issues/2","number":2,"state":"open","locked":false,"title":"PyDOC 2018","user":{"login":"stanleyjs","id":16860172,"node_id":"MDQ6VXNlcjE2ODYwMTcy","avatar_url":"https://avatars2.githubusercontent.com/u/16860172?v=4","gravatar_id":"","url":"https://api.github.com/users/stanleyjs","html_url":"https://github.com/stanleyjs","followers_url":"https://api.github.com/users/stanleyjs/followers","following_url":"https://api.github.com/users/stanleyjs/following{/other_user}","gists_url":"https://api.github.com/users/stanleyjs/gists{/gist_id}","starred_url":"https://api.github.com/users/stanleyjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stanleyjs/subscriptions","organizations_url":"https://api.github.com/users/stanleyjs/orgs","repos_url":"https://api.github.com/users/stanleyjs/repos","events_url":"https://api.github.com/users/stanleyjs/events{/privacy}","received_events_url":"https://api.github.com/users/stanleyjs/received_events","type":"User","site_admin":false},"body":"Hi Chris,\r\nPyDOC is a very useful tool; hotkey doc search is common in languages like MATLAB. We should have robust capabilities in sublime.\r\n\r\nI added some new quality of life features to PyDOC.  \r\nAdded support for neighboring text selection (via Sublime Regions)\r\nAdded support for Scipy stack documentation search and Tensorflow documentation search\r\n\r\nUpdated Readmes and shortcuts.\r\n","created_at":"2018-11-30T21:26:14Z","updated_at":"2018-12-01T19:55:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a1d5deae46166b622f429269f910b399880ee88e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/chrissimpkins/PyDOC/pulls/2/commits","review_comments_url":"https://api.github.com/repos/chrissimpkins/PyDOC/pulls/2/comments","review_comment_url":"https://api.github.com/repos/chrissimpkins/PyDOC/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chrissimpkins/PyDOC/issues/2/comments","statuses_url":"https://api.github.com/repos/chrissimpkins/PyDOC/statuses/cf434847a53c34c2a34748e4e3bfc9181b61f33f","head":{"label":"stanleyjs:master","ref":"master","sha":"cf434847a53c34c2a34748e4e3bfc9181b61f33f","user":{"login":"stanleyjs","id":16860172,"node_id":"MDQ6VXNlcjE2ODYwMTcy","avatar_url":"https://avatars2.githubusercontent.com/u/16860172?v=4","gravatar_id":"","url":"https://api.github.com/users/stanleyjs","html_url":"https://github.com/stanleyjs","followers_url":"https://api.github.com/users/stanleyjs/followers","following_url":"https://api.github.com/users/stanleyjs/following{/other_user}","gists_url":"https://api.github.com/users/stanleyjs/gists{/gist_id}","starred_url":"https://api.github.com/users/stanleyjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stanleyjs/subscriptions","organizations_url":"https://api.github.com/users/stanleyjs/orgs","repos_url":"https://api.github.com/users/stanleyjs/repos","events_url":"https://api.github.com/users/stanleyjs/events{/privacy}","received_events_url":"https://api.github.com/users/stanleyjs/received_events","type":"User","site_admin":false},"repo":{"id":159874036,"node_id":"MDEwOlJlcG9zaXRvcnkxNTk4NzQwMzY=","name":"PyDOC","full_name":"stanleyjs/PyDOC","private":false,"owner":{"login":"stanleyjs","id":16860172,"node_id":"MDQ6VXNlcjE2ODYwMTcy","avatar_url":"https://avatars2.githubusercontent.com/u/16860172?v=4","gravatar_id":"","url":"https://api.github.com/users/stanleyjs","html_url":"https://github.com/stanleyjs","followers_url":"https://api.github.com/users/stanleyjs/followers","following_url":"https://api.github.com/users/stanleyjs/following{/other_user}","gists_url":"https://api.github.com/users/stanleyjs/gists{/gist_id}","starred_url":"https://api.github.com/users/stanleyjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stanleyjs/subscriptions","organizations_url":"https://api.github.com/users/stanleyjs/orgs","repos_url":"https://api.github.com/users/stanleyjs/repos","events_url":"https://api.github.com/users/stanleyjs/events{/privacy}","received_events_url":"https://api.github.com/users/stanleyjs/received_events","type":"User","site_admin":false},"html_url":"https://github.com/stanleyjs/PyDOC","description":"A Sublime Text plugin that supports Python 2 & 3 documentation search from selections in the editor","fork":true,"url":"https://api.github.com/repos/stanleyjs/PyDOC","forks_url":"https://api.github.com/repos/stanleyjs/PyDOC/forks","keys_url":"https://api.github.com/repos/stanleyjs/PyDOC/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stanleyjs/PyDOC/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stanleyjs/PyDOC/teams","hooks_url":"https://api.github.com/repos/stanleyjs/PyDOC/hooks","issue_events_url":"https://api.github.com/repos/stanleyjs/PyDOC/issues/events{/number}","events_url":"https://api.github.com/repos/stanleyjs/PyDOC/events","assignees_url":"https://api.github.com/repos/stanleyjs/PyDOC/assignees{/user}","branches_url":"https://api.github.com/repos/stanleyjs/PyDOC/branches{/branch}","tags_url":"https://api.github.com/repos/stanleyjs/PyDOC/tags","blobs_url":"https://api.github.com/repos/stanleyjs/PyDOC/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stanleyjs/PyDOC/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stanleyjs/PyDOC/git/refs{/sha}","trees_url":"https://api.github.com/repos/stanleyjs/PyDOC/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stanleyjs/PyDOC/statuses/{sha}","languages_url":"https://api.github.com/repos/stanleyjs/PyDOC/languages","stargazers_url":"https://api.github.com/repos/stanleyjs/PyDOC/stargazers","contributors_url":"https://api.github.com/repos/stanleyjs/PyDOC/contributors","subscribers_url":"https://api.github.com/repos/stanleyjs/PyDOC/subscribers","subscription_url":"https://api.github.com/repos/stanleyjs/PyDOC/subscription","commits_url":"https://api.github.com/repos/stanleyjs/PyDOC/commits{/sha}","git_commits_url":"https://api.github.com/repos/stanleyjs/PyDOC/git/commits{/sha}","comments_url":"https://api.github.com/repos/stanleyjs/PyDOC/comments{/number}","issue_comment_url":"https://api.github.com/repos/stanleyjs/PyDOC/issues/comments{/number}","contents_url":"https://api.github.com/repos/stanleyjs/PyDOC/contents/{+path}","compare_url":"https://api.github.com/repos/stanleyjs/PyDOC/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stanleyjs/PyDOC/merges","archive_url":"https://api.github.com/repos/stanleyjs/PyDOC/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stanleyjs/PyDOC/downloads","issues_url":"https://api.github.com/repos/stanleyjs/PyDOC/issues{/number}","pulls_url":"https://api.github.com/repos/stanleyjs/PyDOC/pulls{/number}","milestones_url":"https://api.github.com/repos/stanleyjs/PyDOC/milestones{/number}","notifications_url":"https://api.github.com/repos/stanleyjs/PyDOC/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stanleyjs/PyDOC/labels{/name}","releases_url":"https://api.github.com/repos/stanleyjs/PyDOC/releases{/id}","deployments_url":"https://api.github.com/repos/stanleyjs/PyDOC/deployments","created_at":"2018-11-30T20:15:40Z","updated_at":"2018-11-30T21:24:12Z","pushed_at":"2018-11-30T21:24:11Z","git_url":"git://github.com/stanleyjs/PyDOC.git","ssh_url":"git@github.com:stanleyjs/PyDOC.git","clone_url":"https://github.com/stanleyjs/PyDOC.git","svn_url":"https://github.com/stanleyjs/PyDOC","homepage":"https://sublime.wbond.net/packages/PyDOC","size":16,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":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":"chrissimpkins:master","ref":"master","sha":"6d8029b8863116ea48737e7d528a5cbff3d96d3c","user":{"login":"chrissimpkins","id":4249591,"node_id":"MDQ6VXNlcjQyNDk1OTE=","avatar_url":"https://avatars0.githubusercontent.com/u/4249591?v=4","gravatar_id":"","url":"https://api.github.com/users/chrissimpkins","html_url":"https://github.com/chrissimpkins","followers_url":"https://api.github.com/users/chrissimpkins/followers","following_url":"https://api.github.com/users/chrissimpkins/following{/other_user}","gists_url":"https://api.github.com/users/chrissimpkins/gists{/gist_id}","starred_url":"https://api.github.com/users/chrissimpkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrissimpkins/subscriptions","organizations_url":"https://api.github.com/users/chrissimpkins/orgs","repos_url":"https://api.github.com/users/chrissimpkins/repos","events_url":"https://api.github.com/users/chrissimpkins/events{/privacy}","received_events_url":"https://api.github.com/users/chrissimpkins/received_events","type":"User","site_admin":false},"repo":{"id":17765118,"node_id":"MDEwOlJlcG9zaXRvcnkxNzc2NTExOA==","name":"PyDOC","full_name":"chrissimpkins/PyDOC","private":false,"owner":{"login":"chrissimpkins","id":4249591,"node_id":"MDQ6VXNlcjQyNDk1OTE=","avatar_url":"https://avatars0.githubusercontent.com/u/4249591?v=4","gravatar_id":"","url":"https://api.github.com/users/chrissimpkins","html_url":"https://github.com/chrissimpkins","followers_url":"https://api.github.com/users/chrissimpkins/followers","following_url":"https://api.github.com/users/chrissimpkins/following{/other_user}","gists_url":"https://api.github.com/users/chrissimpkins/gists{/gist_id}","starred_url":"https://api.github.com/users/chrissimpkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrissimpkins/subscriptions","organizations_url":"https://api.github.com/users/chrissimpkins/orgs","repos_url":"https://api.github.com/users/chrissimpkins/repos","events_url":"https://api.github.com/users/chrissimpkins/events{/privacy}","received_events_url":"https://api.github.com/users/chrissimpkins/received_events","type":"User","site_admin":false},"html_url":"https://github.com/chrissimpkins/PyDOC","description":"A Sublime Text plugin that supports Python 2 & 3 documentation search from selections in the editor","fork":false,"url":"https://api.github.com/repos/chrissimpkins/PyDOC","forks_url":"https://api.github.com/repos/chrissimpkins/PyDOC/forks","keys_url":"https://api.github.com/repos/chrissimpkins/PyDOC/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chrissimpkins/PyDOC/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chrissimpkins/PyDOC/teams","hooks_url":"https://api.github.com/repos/chrissimpkins/PyDOC/hooks","issue_events_url":"https://api.github.com/repos/chrissimpkins/PyDOC/issues/events{/number}","events_url":"https://api.github.com/repos/chrissimpkins/PyDOC/events","assignees_url":"https://api.github.com/repos/chrissimpkins/PyDOC/assignees{/user}","branches_url":"https://api.github.com/repos/chrissimpkins/PyDOC/branches{/branch}","tags_url":"https://api.github.com/repos/chrissimpkins/PyDOC/tags","blobs_url":"https://api.github.com/repos/chrissimpkins/PyDOC/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chrissimpkins/PyDOC/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chrissimpkins/PyDOC/git/refs{/sha}","trees_url":"https://api.github.com/repos/chrissimpkins/PyDOC/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chrissimpkins/PyDOC/statuses/{sha}","languages_url":"https://api.github.com/repos/chrissimpkins/PyDOC/languages","stargazers_url":"https://api.github.com/repos/chrissimpkins/PyDOC/stargazers","contributors_url":"https://api.github.com/repos/chrissimpkins/PyDOC/contributors","subscribers_url":"https://api.github.com/repos/chrissimpkins/PyDOC/subscribers","subscription_url":"https://api.github.com/repos/chrissimpkins/PyDOC/subscription","commits_url":"https://api.github.com/repos/chrissimpkins/PyDOC/commits{/sha}","git_commits_url":"https://api.github.com/repos/chrissimpkins/PyDOC/git/commits{/sha}","comments_url":"https://api.github.com/repos/chrissimpkins/PyDOC/comments{/number}","issue_comment_url":"https://api.github.com/repos/chrissimpkins/PyDOC/issues/comments{/number}","contents_url":"https://api.github.com/repos/chrissimpkins/PyDOC/contents/{+path}","compare_url":"https://api.github.com/repos/chrissimpkins/PyDOC/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chrissimpkins/PyDOC/merges","archive_url":"https://api.github.com/repos/chrissimpkins/PyDOC/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chrissimpkins/PyDOC/downloads","issues_url":"https://api.github.com/repos/chrissimpkins/PyDOC/issues{/number}","pulls_url":"https://api.github.com/repos/chrissimpkins/PyDOC/pulls{/number}","milestones_url":"https://api.github.com/repos/chrissimpkins/PyDOC/milestones{/number}","notifications_url":"https://api.github.com/repos/chrissimpkins/PyDOC/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chrissimpkins/PyDOC/labels{/name}","releases_url":"https://api.github.com/repos/chrissimpkins/PyDOC/releases{/id}","deployments_url":"https://api.github.com/repos/chrissimpkins/PyDOC/deployments","created_at":"2014-03-15T00:55:52Z","updated_at":"2017-08-01T12:53:46Z","pushed_at":"2018-11-30T21:26:15Z","git_url":"git://github.com/chrissimpkins/PyDOC.git","ssh_url":"git@github.com:chrissimpkins/PyDOC.git","clone_url":"https://github.com/chrissimpkins/PyDOC.git","svn_url":"https://github.com/chrissimpkins/PyDOC","homepage":"https://sublime.wbond.net/packages/PyDOC","size":262,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":2,"open_issues":1,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chrissimpkins/PyDOC/pulls/2"},"html":{"href":"https://github.com/chrissimpkins/PyDOC/pull/2"},"issue":{"href":"https://api.github.com/repos/chrissimpkins/PyDOC/issues/2"},"comments":{"href":"https://api.github.com/repos/chrissimpkins/PyDOC/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/chrissimpkins/PyDOC/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/chrissimpkins/PyDOC/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chrissimpkins/PyDOC/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/chrissimpkins/PyDOC/statuses/cf434847a53c34c2a34748e4e3bfc9181b61f33f"}},"author_association":"NONE"}}
{"actor":{"display_login":"chrissimpkins"}}