{"action":"created","comment":{"url":"https://api.github.com/repos/xonsh/xonsh/pulls/comments/66845753","id":66845753,"diff_hunk":"@@ -432,26 +591,30 @@ def _gc(ns, hist):\n \n \n _MAIN_ACTIONS = {\n-    'show': _show,\n+    'session': History.show,\n+    'all': History.show,\n+    'zsh': History.show,    \n+    'bash': History.show,    \n     'id': lambda ns, hist: print(hist.sessionid),\n     'file': lambda ns, hist: print(hist.filename),\n     'info': _info,\n     'diff': diff_history._main_action,\n-    'gc': _gc,\n+    'gc': _gc","path":"xonsh/history.py","position":null,"original_position":339,"commit_id":"10f5ab95848bb54809e4f25509a78721da379da1","original_commit_id":"5a3506c88425f0a048c42c08d33a1d380508141b","user":{"login":"gforsyth","id":3596999,"avatar_url":"https://avatars.githubusercontent.com/u/3596999?v=3","gravatar_id":"","url":"https://api.github.com/users/gforsyth","html_url":"https://github.com/gforsyth","followers_url":"https://api.github.com/users/gforsyth/followers","following_url":"https://api.github.com/users/gforsyth/following{/other_user}","gists_url":"https://api.github.com/users/gforsyth/gists{/gist_id}","starred_url":"https://api.github.com/users/gforsyth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gforsyth/subscriptions","organizations_url":"https://api.github.com/users/gforsyth/orgs","repos_url":"https://api.github.com/users/gforsyth/repos","events_url":"https://api.github.com/users/gforsyth/events{/privacy}","received_events_url":"https://api.github.com/users/gforsyth/received_events","type":"User","site_admin":false},"body":"Generally it makes editing easier -- if you rearrange a list you don't accidentally introduce syntax errors when you transpose lines.  Also it makes for cleaner diffs when you add items to a list.","created_at":"2016-06-13T18:48:16Z","updated_at":"2016-06-13T18:48:16Z","html_url":"https://github.com/xonsh/xonsh/pull/1211#discussion_r66845753","pull_request_url":"https://api.github.com/repos/xonsh/xonsh/pulls/1211","_links":{"self":{"href":"https://api.github.com/repos/xonsh/xonsh/pulls/comments/66845753"},"html":{"href":"https://github.com/xonsh/xonsh/pull/1211#discussion_r66845753"},"pull_request":{"href":"https://api.github.com/repos/xonsh/xonsh/pulls/1211"}}},"pull_request":{"url":"https://api.github.com/repos/xonsh/xonsh/pulls/1211","id":73483308,"html_url":"https://github.com/xonsh/xonsh/pull/1211","diff_url":"https://github.com/xonsh/xonsh/pull/1211.diff","patch_url":"https://github.com/xonsh/xonsh/pull/1211.patch","issue_url":"https://api.github.com/repos/xonsh/xonsh/issues/1211","number":1211,"state":"open","locked":false,"title":"History all","user":{"login":"JohnLunzer","id":8135795,"avatar_url":"https://avatars.githubusercontent.com/u/8135795?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnLunzer","html_url":"https://github.com/JohnLunzer","followers_url":"https://api.github.com/users/JohnLunzer/followers","following_url":"https://api.github.com/users/JohnLunzer/following{/other_user}","gists_url":"https://api.github.com/users/JohnLunzer/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnLunzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnLunzer/subscriptions","organizations_url":"https://api.github.com/users/JohnLunzer/orgs","repos_url":"https://api.github.com/users/JohnLunzer/repos","events_url":"https://api.github.com/users/JohnLunzer/events{/privacy}","received_events_url":"https://api.github.com/users/JohnLunzer/received_events","type":"User","site_admin":false},"body":"This PR should fully address #572. Some pretty good stuff here!\r\n\r\nThere are a couple of changes which I'd like to address as they may be seen as controversial. I've removed `history show`. This was redundant as the simpler `history` did the exact same thing. I highly doubt anyone was using `history show` in scripts and so this should not be seen as a breaking change. Though the documentation will need to be updated. \r\n\r\nThe documentation will also need to take into account the new functionality for `__xonsh_history__.show()`, which probably needs its docstring to be a little more descriptive as well. \r\n\r\nFrankly there are probably a couple of commits left to make but I wanted to get this out into the wild for people to test so I could get some feedback.","created_at":"2016-06-12T01:43:40Z","updated_at":"2016-06-13T18:48:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"74ec616cc40d8779890261dd8ad17fccf529469f","assignee":null,"milestone":{"url":"https://api.github.com/repos/xonsh/xonsh/milestones/4","html_url":"https://github.com/xonsh/xonsh/milestones/v0.4.0","labels_url":"https://api.github.com/repos/xonsh/xonsh/milestones/4/labels","id":1779851,"number":4,"title":"v0.4.0","description":"","creator":{"login":"scopatz","id":320553,"avatar_url":"https://avatars.githubusercontent.com/u/320553?v=3","gravatar_id":"","url":"https://api.github.com/users/scopatz","html_url":"https://github.com/scopatz","followers_url":"https://api.github.com/users/scopatz/followers","following_url":"https://api.github.com/users/scopatz/following{/other_user}","gists_url":"https://api.github.com/users/scopatz/gists{/gist_id}","starred_url":"https://api.github.com/users/scopatz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scopatz/subscriptions","organizations_url":"https://api.github.com/users/scopatz/orgs","repos_url":"https://api.github.com/users/scopatz/repos","events_url":"https://api.github.com/users/scopatz/events{/privacy}","received_events_url":"https://api.github.com/users/scopatz/received_events","type":"User","site_admin":false},"open_issues":163,"closed_issues":120,"state":"open","created_at":"2016-05-20T22:54:44Z","updated_at":"2016-06-13T16:53:35Z","due_on":"2016-06-30T04:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/xonsh/xonsh/pulls/1211/commits","review_comments_url":"https://api.github.com/repos/xonsh/xonsh/pulls/1211/comments","review_comment_url":"https://api.github.com/repos/xonsh/xonsh/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xonsh/xonsh/issues/1211/comments","statuses_url":"https://api.github.com/repos/xonsh/xonsh/statuses/10f5ab95848bb54809e4f25509a78721da379da1","head":{"label":"JohnLunzer:history-all","ref":"history-all","sha":"10f5ab95848bb54809e4f25509a78721da379da1","user":{"login":"JohnLunzer","id":8135795,"avatar_url":"https://avatars.githubusercontent.com/u/8135795?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnLunzer","html_url":"https://github.com/JohnLunzer","followers_url":"https://api.github.com/users/JohnLunzer/followers","following_url":"https://api.github.com/users/JohnLunzer/following{/other_user}","gists_url":"https://api.github.com/users/JohnLunzer/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnLunzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnLunzer/subscriptions","organizations_url":"https://api.github.com/users/JohnLunzer/orgs","repos_url":"https://api.github.com/users/JohnLunzer/repos","events_url":"https://api.github.com/users/JohnLunzer/events{/privacy}","received_events_url":"https://api.github.com/users/JohnLunzer/received_events","type":"User","site_admin":false},"repo":{"id":59679733,"name":"xonsh","full_name":"JohnLunzer/xonsh","owner":{"login":"JohnLunzer","id":8135795,"avatar_url":"https://avatars.githubusercontent.com/u/8135795?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnLunzer","html_url":"https://github.com/JohnLunzer","followers_url":"https://api.github.com/users/JohnLunzer/followers","following_url":"https://api.github.com/users/JohnLunzer/following{/other_user}","gists_url":"https://api.github.com/users/JohnLunzer/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnLunzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnLunzer/subscriptions","organizations_url":"https://api.github.com/users/JohnLunzer/orgs","repos_url":"https://api.github.com/users/JohnLunzer/repos","events_url":"https://api.github.com/users/JohnLunzer/events{/privacy}","received_events_url":"https://api.github.com/users/JohnLunzer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JohnLunzer/xonsh","description":"xonsh is a Python-ish, BASHwards-facing shell.","fork":true,"url":"https://api.github.com/repos/JohnLunzer/xonsh","forks_url":"https://api.github.com/repos/JohnLunzer/xonsh/forks","keys_url":"https://api.github.com/repos/JohnLunzer/xonsh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JohnLunzer/xonsh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JohnLunzer/xonsh/teams","hooks_url":"https://api.github.com/repos/JohnLunzer/xonsh/hooks","issue_events_url":"https://api.github.com/repos/JohnLunzer/xonsh/issues/events{/number}","events_url":"https://api.github.com/repos/JohnLunzer/xonsh/events","assignees_url":"https://api.github.com/repos/JohnLunzer/xonsh/assignees{/user}","branches_url":"https://api.github.com/repos/JohnLunzer/xonsh/branches{/branch}","tags_url":"https://api.github.com/repos/JohnLunzer/xonsh/tags","blobs_url":"https://api.github.com/repos/JohnLunzer/xonsh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JohnLunzer/xonsh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JohnLunzer/xonsh/git/refs{/sha}","trees_url":"https://api.github.com/repos/JohnLunzer/xonsh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JohnLunzer/xonsh/statuses/{sha}","languages_url":"https://api.github.com/repos/JohnLunzer/xonsh/languages","stargazers_url":"https://api.github.com/repos/JohnLunzer/xonsh/stargazers","contributors_url":"https://api.github.com/repos/JohnLunzer/xonsh/contributors","subscribers_url":"https://api.github.com/repos/JohnLunzer/xonsh/subscribers","subscription_url":"https://api.github.com/repos/JohnLunzer/xonsh/subscription","commits_url":"https://api.github.com/repos/JohnLunzer/xonsh/commits{/sha}","git_commits_url":"https://api.github.com/repos/JohnLunzer/xonsh/git/commits{/sha}","comments_url":"https://api.github.com/repos/JohnLunzer/xonsh/comments{/number}","issue_comment_url":"https://api.github.com/repos/JohnLunzer/xonsh/issues/comments{/number}","contents_url":"https://api.github.com/repos/JohnLunzer/xonsh/contents/{+path}","compare_url":"https://api.github.com/repos/JohnLunzer/xonsh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JohnLunzer/xonsh/merges","archive_url":"https://api.github.com/repos/JohnLunzer/xonsh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JohnLunzer/xonsh/downloads","issues_url":"https://api.github.com/repos/JohnLunzer/xonsh/issues{/number}","pulls_url":"https://api.github.com/repos/JohnLunzer/xonsh/pulls{/number}","milestones_url":"https://api.github.com/repos/JohnLunzer/xonsh/milestones{/number}","notifications_url":"https://api.github.com/repos/JohnLunzer/xonsh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JohnLunzer/xonsh/labels{/name}","releases_url":"https://api.github.com/repos/JohnLunzer/xonsh/releases{/id}","deployments_url":"https://api.github.com/repos/JohnLunzer/xonsh/deployments","created_at":"2016-05-25T16:31:18Z","updated_at":"2016-05-25T16:31:19Z","pushed_at":"2016-06-13T15:57:27Z","git_url":"git://github.com/JohnLunzer/xonsh.git","ssh_url":"git@github.com:JohnLunzer/xonsh.git","clone_url":"https://github.com/JohnLunzer/xonsh.git","svn_url":"https://github.com/JohnLunzer/xonsh","homepage":"http://xon.sh","size":5269,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"xonsh:master","ref":"master","sha":"b25b057b289eb9aa1e38f3cd78598d6cc4603ce2","user":{"login":"xonsh","id":17418188,"avatar_url":"https://avatars.githubusercontent.com/u/17418188?v=3","gravatar_id":"","url":"https://api.github.com/users/xonsh","html_url":"https://github.com/xonsh","followers_url":"https://api.github.com/users/xonsh/followers","following_url":"https://api.github.com/users/xonsh/following{/other_user}","gists_url":"https://api.github.com/users/xonsh/gists{/gist_id}","starred_url":"https://api.github.com/users/xonsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xonsh/subscriptions","organizations_url":"https://api.github.com/users/xonsh/orgs","repos_url":"https://api.github.com/users/xonsh/repos","events_url":"https://api.github.com/users/xonsh/events{/privacy}","received_events_url":"https://api.github.com/users/xonsh/received_events","type":"Organization","site_admin":false},"repo":{"id":29620400,"name":"xonsh","full_name":"xonsh/xonsh","owner":{"login":"xonsh","id":17418188,"avatar_url":"https://avatars.githubusercontent.com/u/17418188?v=3","gravatar_id":"","url":"https://api.github.com/users/xonsh","html_url":"https://github.com/xonsh","followers_url":"https://api.github.com/users/xonsh/followers","following_url":"https://api.github.com/users/xonsh/following{/other_user}","gists_url":"https://api.github.com/users/xonsh/gists{/gist_id}","starred_url":"https://api.github.com/users/xonsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xonsh/subscriptions","organizations_url":"https://api.github.com/users/xonsh/orgs","repos_url":"https://api.github.com/users/xonsh/repos","events_url":"https://api.github.com/users/xonsh/events{/privacy}","received_events_url":"https://api.github.com/users/xonsh/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xonsh/xonsh","description":"xonsh is a Python-ish, BASHwards-facing shell.","fork":false,"url":"https://api.github.com/repos/xonsh/xonsh","forks_url":"https://api.github.com/repos/xonsh/xonsh/forks","keys_url":"https://api.github.com/repos/xonsh/xonsh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xonsh/xonsh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xonsh/xonsh/teams","hooks_url":"https://api.github.com/repos/xonsh/xonsh/hooks","issue_events_url":"https://api.github.com/repos/xonsh/xonsh/issues/events{/number}","events_url":"https://api.github.com/repos/xonsh/xonsh/events","assignees_url":"https://api.github.com/repos/xonsh/xonsh/assignees{/user}","branches_url":"https://api.github.com/repos/xonsh/xonsh/branches{/branch}","tags_url":"https://api.github.com/repos/xonsh/xonsh/tags","blobs_url":"https://api.github.com/repos/xonsh/xonsh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xonsh/xonsh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xonsh/xonsh/git/refs{/sha}","trees_url":"https://api.github.com/repos/xonsh/xonsh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xonsh/xonsh/statuses/{sha}","languages_url":"https://api.github.com/repos/xonsh/xonsh/languages","stargazers_url":"https://api.github.com/repos/xonsh/xonsh/stargazers","contributors_url":"https://api.github.com/repos/xonsh/xonsh/contributors","subscribers_url":"https://api.github.com/repos/xonsh/xonsh/subscribers","subscription_url":"https://api.github.com/repos/xonsh/xonsh/subscription","commits_url":"https://api.github.com/repos/xonsh/xonsh/commits{/sha}","git_commits_url":"https://api.github.com/repos/xonsh/xonsh/git/commits{/sha}","comments_url":"https://api.github.com/repos/xonsh/xonsh/comments{/number}","issue_comment_url":"https://api.github.com/repos/xonsh/xonsh/issues/comments{/number}","contents_url":"https://api.github.com/repos/xonsh/xonsh/contents/{+path}","compare_url":"https://api.github.com/repos/xonsh/xonsh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xonsh/xonsh/merges","archive_url":"https://api.github.com/repos/xonsh/xonsh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xonsh/xonsh/downloads","issues_url":"https://api.github.com/repos/xonsh/xonsh/issues{/number}","pulls_url":"https://api.github.com/repos/xonsh/xonsh/pulls{/number}","milestones_url":"https://api.github.com/repos/xonsh/xonsh/milestones{/number}","notifications_url":"https://api.github.com/repos/xonsh/xonsh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xonsh/xonsh/labels{/name}","releases_url":"https://api.github.com/repos/xonsh/xonsh/releases{/id}","deployments_url":"https://api.github.com/repos/xonsh/xonsh/deployments","created_at":"2015-01-21T22:05:27Z","updated_at":"2016-06-13T16:51:28Z","pushed_at":"2016-06-13T18:33:31Z","git_url":"git://github.com/xonsh/xonsh.git","ssh_url":"git@github.com:xonsh/xonsh.git","clone_url":"https://github.com/xonsh/xonsh.git","svn_url":"https://github.com/xonsh/xonsh","homepage":"http://xon.sh","size":6222,"stargazers_count":1485,"watchers_count":1485,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":145,"mirror_url":null,"open_issues_count":215,"forks":145,"open_issues":215,"watchers":1485,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xonsh/xonsh/pulls/1211"},"html":{"href":"https://github.com/xonsh/xonsh/pull/1211"},"issue":{"href":"https://api.github.com/repos/xonsh/xonsh/issues/1211"},"comments":{"href":"https://api.github.com/repos/xonsh/xonsh/issues/1211/comments"},"review_comments":{"href":"https://api.github.com/repos/xonsh/xonsh/pulls/1211/comments"},"review_comment":{"href":"https://api.github.com/repos/xonsh/xonsh/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xonsh/xonsh/pulls/1211/commits"},"statuses":{"href":"https://api.github.com/repos/xonsh/xonsh/statuses/10f5ab95848bb54809e4f25509a78721da379da1"}}}}
{"actor":{"display_login":"gforsyth"}}