{"action":"created","comment":{"url":"https://api.github.com/repos/bram85/topydo/pulls/comments/40541836","id":40541836,"diff_hunk":"@@ -2,7 +2,7 @@\n \n VERSION = '0.6'\n \n-LICENSE = \"\"\"Copyright (C) 2014 Bram Schoenmakers\n+LICENSE = \"\"\"Copyright (C) 2014-15 Bram Schoenmakers","path":"topydo/lib/Version.py","position":5,"original_position":5,"commit_id":"c454d042f7931b9a1a5debca8f60d9fcafc715aa","original_commit_id":"c454d042f7931b9a1a5debca8f60d9fcafc715aa","user":{"login":"bram85","id":63248,"avatar_url":"https://avatars.githubusercontent.com/u/63248?v=3","gravatar_id":"","url":"https://api.github.com/users/bram85","html_url":"https://github.com/bram85","followers_url":"https://api.github.com/users/bram85/followers","following_url":"https://api.github.com/users/bram85/following{/other_user}","gists_url":"https://api.github.com/users/bram85/gists{/gist_id}","starred_url":"https://api.github.com/users/bram85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bram85/subscriptions","organizations_url":"https://api.github.com/users/bram85/orgs","repos_url":"https://api.github.com/users/bram85/repos","events_url":"https://api.github.com/users/bram85/events{/privacy}","received_events_url":"https://api.github.com/users/bram85/received_events","type":"User","site_admin":false},"body":"2014-2015","created_at":"2015-09-28T11:27:05Z","updated_at":"2015-09-28T11:27:05Z","html_url":"https://github.com/bram85/topydo/pull/52#discussion_r40541836","pull_request_url":"https://api.github.com/repos/bram85/topydo/pulls/52","_links":{"self":{"href":"https://api.github.com/repos/bram85/topydo/pulls/comments/40541836"},"html":{"href":"https://github.com/bram85/topydo/pull/52#discussion_r40541836"},"pull_request":{"href":"https://api.github.com/repos/bram85/topydo/pulls/52"}}},"pull_request":{"url":"https://api.github.com/repos/bram85/topydo/pulls/52","id":46094903,"html_url":"https://github.com/bram85/topydo/pull/52","diff_url":"https://github.com/bram85/topydo/pull/52.diff","patch_url":"https://github.com/bram85/topydo/pull/52.patch","issue_url":"https://api.github.com/repos/bram85/topydo/issues/52","number":52,"state":"open","locked":false,"title":"Top command","user":{"login":"MinchinWeb","id":1548809,"avatar_url":"https://avatars.githubusercontent.com/u/1548809?v=3","gravatar_id":"","url":"https://api.github.com/users/MinchinWeb","html_url":"https://github.com/MinchinWeb","followers_url":"https://api.github.com/users/MinchinWeb/followers","following_url":"https://api.github.com/users/MinchinWeb/following{/other_user}","gists_url":"https://api.github.com/users/MinchinWeb/gists{/gist_id}","starred_url":"https://api.github.com/users/MinchinWeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MinchinWeb/subscriptions","organizations_url":"https://api.github.com/users/MinchinWeb/orgs","repos_url":"https://api.github.com/users/MinchinWeb/repos","events_url":"https://api.github.com/users/MinchinWeb/events{/privacy}","received_events_url":"https://api.github.com/users/MinchinWeb/received_events","type":"User","site_admin":false},"body":"First off, the framework you have built up here is great. Adding this changes proved surprisingly easy. Thanks for all your work on `topydo`!.\r\n\r\n---\r\n\r\nThis pull request puts together a series of changes to `ls` output. It:\r\n\r\n - unbracketed priorities\r\n - moves added date (and due date) to end of the line\r\n - reports dates in a 'human readable' way\r\n - indents the second lines of items, and\r\n - updated tests to match\r\n\r\nSample output:\r\n```\r\nC:\\>topydo ls +testing\r\n|358|   this has a due date, and was added two month ago or so, and has no\r\n          priority +testing (2 months ago, overdue by 11 days)\r\n|356| A test item +testing (today)\r\n|357| D this is a really long item that goes over two lines. Yup, it keeps\r\n          going and going and going some more +testing (today)\r\n|359|   this item is a year old +testing (13 months ago)\r\n|360|   this item is over two years old +testing (2 years ago)\r\n```\r\n\r\n## Top Command\r\n\r\nThe above was really just the prelude to introduce the `top` command. I added this because, personally, this is my most frequently used command to manage my todo list. The `top` command is like the `ls` command, but truncates output to one line per item, and one \"screenful\" of lines. It does that by using the new settings `console_height` and `consule_width` (which default to 25 and 80 respectively). Because it is built off of `ls`, and so can use the same filtering rules.\r\n\r\nSample output:\r\n```\r\nC:\\>topydo top +testing\r\n|358|   this has a due date, and was added two month ago or so, and has no ...\r\n|356| A test item +testing (today)\r\n|357| D this is a really long item that goes over two lines. Yup, it keeps ...\r\n|359|   this item is a year old +testing (13 months ago)\r\n|360|   this item is over two years old +testing (2 years ago)\r\n```\r\n\r\nIssues I've run into:\r\n - adding line breaks can mean that really long URL's (over ~60 chars) can end up over two lines and only the first part will be coloured\r\n - line breaking, wrapping, and indenting is done with the `textwrap` module, which is part of the standard library. However, it makes uses of some functionality that was introduced in Python 3.4, so a work-around for earlier versions had to be created, but seems to work fine.\r\n\r\n\r\nI also included various tyopgraphical fixes to be more inline with PEP 8, and added Python 3.5 (which is now out) to Travis-CI.","created_at":"2015-09-27T04:11:12Z","updated_at":"2015-09-28T11:27:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"594f2862bf9b2409dc03c27f307359b8c2078691","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bram85/topydo/pulls/52/commits","review_comments_url":"https://api.github.com/repos/bram85/topydo/pulls/52/comments","review_comment_url":"https://api.github.com/repos/bram85/topydo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bram85/topydo/issues/52/comments","statuses_url":"https://api.github.com/repos/bram85/topydo/statuses/c454d042f7931b9a1a5debca8f60d9fcafc715aa","head":{"label":"MinchinWeb:top_command","ref":"top_command","sha":"c454d042f7931b9a1a5debca8f60d9fcafc715aa","user":{"login":"MinchinWeb","id":1548809,"avatar_url":"https://avatars.githubusercontent.com/u/1548809?v=3","gravatar_id":"","url":"https://api.github.com/users/MinchinWeb","html_url":"https://github.com/MinchinWeb","followers_url":"https://api.github.com/users/MinchinWeb/followers","following_url":"https://api.github.com/users/MinchinWeb/following{/other_user}","gists_url":"https://api.github.com/users/MinchinWeb/gists{/gist_id}","starred_url":"https://api.github.com/users/MinchinWeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MinchinWeb/subscriptions","organizations_url":"https://api.github.com/users/MinchinWeb/orgs","repos_url":"https://api.github.com/users/MinchinWeb/repos","events_url":"https://api.github.com/users/MinchinWeb/events{/privacy}","received_events_url":"https://api.github.com/users/MinchinWeb/received_events","type":"User","site_admin":false},"repo":{"id":40417299,"name":"topydo","full_name":"MinchinWeb/topydo","owner":{"login":"MinchinWeb","id":1548809,"avatar_url":"https://avatars.githubusercontent.com/u/1548809?v=3","gravatar_id":"","url":"https://api.github.com/users/MinchinWeb","html_url":"https://github.com/MinchinWeb","followers_url":"https://api.github.com/users/MinchinWeb/followers","following_url":"https://api.github.com/users/MinchinWeb/following{/other_user}","gists_url":"https://api.github.com/users/MinchinWeb/gists{/gist_id}","starred_url":"https://api.github.com/users/MinchinWeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MinchinWeb/subscriptions","organizations_url":"https://api.github.com/users/MinchinWeb/orgs","repos_url":"https://api.github.com/users/MinchinWeb/repos","events_url":"https://api.github.com/users/MinchinWeb/events{/privacy}","received_events_url":"https://api.github.com/users/MinchinWeb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MinchinWeb/topydo","description":"A command-line todo list application using the todo.txt format.","fork":true,"url":"https://api.github.com/repos/MinchinWeb/topydo","forks_url":"https://api.github.com/repos/MinchinWeb/topydo/forks","keys_url":"https://api.github.com/repos/MinchinWeb/topydo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MinchinWeb/topydo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MinchinWeb/topydo/teams","hooks_url":"https://api.github.com/repos/MinchinWeb/topydo/hooks","issue_events_url":"https://api.github.com/repos/MinchinWeb/topydo/issues/events{/number}","events_url":"https://api.github.com/repos/MinchinWeb/topydo/events","assignees_url":"https://api.github.com/repos/MinchinWeb/topydo/assignees{/user}","branches_url":"https://api.github.com/repos/MinchinWeb/topydo/branches{/branch}","tags_url":"https://api.github.com/repos/MinchinWeb/topydo/tags","blobs_url":"https://api.github.com/repos/MinchinWeb/topydo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MinchinWeb/topydo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MinchinWeb/topydo/git/refs{/sha}","trees_url":"https://api.github.com/repos/MinchinWeb/topydo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MinchinWeb/topydo/statuses/{sha}","languages_url":"https://api.github.com/repos/MinchinWeb/topydo/languages","stargazers_url":"https://api.github.com/repos/MinchinWeb/topydo/stargazers","contributors_url":"https://api.github.com/repos/MinchinWeb/topydo/contributors","subscribers_url":"https://api.github.com/repos/MinchinWeb/topydo/subscribers","subscription_url":"https://api.github.com/repos/MinchinWeb/topydo/subscription","commits_url":"https://api.github.com/repos/MinchinWeb/topydo/commits{/sha}","git_commits_url":"https://api.github.com/repos/MinchinWeb/topydo/git/commits{/sha}","comments_url":"https://api.github.com/repos/MinchinWeb/topydo/comments{/number}","issue_comment_url":"https://api.github.com/repos/MinchinWeb/topydo/issues/comments{/number}","contents_url":"https://api.github.com/repos/MinchinWeb/topydo/contents/{+path}","compare_url":"https://api.github.com/repos/MinchinWeb/topydo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MinchinWeb/topydo/merges","archive_url":"https://api.github.com/repos/MinchinWeb/topydo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MinchinWeb/topydo/downloads","issues_url":"https://api.github.com/repos/MinchinWeb/topydo/issues{/number}","pulls_url":"https://api.github.com/repos/MinchinWeb/topydo/pulls{/number}","milestones_url":"https://api.github.com/repos/MinchinWeb/topydo/milestones{/number}","notifications_url":"https://api.github.com/repos/MinchinWeb/topydo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MinchinWeb/topydo/labels{/name}","releases_url":"https://api.github.com/repos/MinchinWeb/topydo/releases{/id}","created_at":"2015-08-08T21:46:23Z","updated_at":"2015-08-08T21:46:24Z","pushed_at":"2015-09-27T21:21:59Z","git_url":"git://github.com/MinchinWeb/topydo.git","ssh_url":"git@github.com:MinchinWeb/topydo.git","clone_url":"https://github.com/MinchinWeb/topydo.git","svn_url":"https://github.com/MinchinWeb/topydo","homepage":"","size":930,"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":"stable"}},"base":{"label":"bram85:master","ref":"master","sha":"14b8d76970a218c43df9237375cd9a75986c9203","user":{"login":"bram85","id":63248,"avatar_url":"https://avatars.githubusercontent.com/u/63248?v=3","gravatar_id":"","url":"https://api.github.com/users/bram85","html_url":"https://github.com/bram85","followers_url":"https://api.github.com/users/bram85/followers","following_url":"https://api.github.com/users/bram85/following{/other_user}","gists_url":"https://api.github.com/users/bram85/gists{/gist_id}","starred_url":"https://api.github.com/users/bram85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bram85/subscriptions","organizations_url":"https://api.github.com/users/bram85/orgs","repos_url":"https://api.github.com/users/bram85/repos","events_url":"https://api.github.com/users/bram85/events{/privacy}","received_events_url":"https://api.github.com/users/bram85/received_events","type":"User","site_admin":false},"repo":{"id":25428376,"name":"topydo","full_name":"bram85/topydo","owner":{"login":"bram85","id":63248,"avatar_url":"https://avatars.githubusercontent.com/u/63248?v=3","gravatar_id":"","url":"https://api.github.com/users/bram85","html_url":"https://github.com/bram85","followers_url":"https://api.github.com/users/bram85/followers","following_url":"https://api.github.com/users/bram85/following{/other_user}","gists_url":"https://api.github.com/users/bram85/gists{/gist_id}","starred_url":"https://api.github.com/users/bram85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bram85/subscriptions","organizations_url":"https://api.github.com/users/bram85/orgs","repos_url":"https://api.github.com/users/bram85/repos","events_url":"https://api.github.com/users/bram85/events{/privacy}","received_events_url":"https://api.github.com/users/bram85/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bram85/topydo","description":"A command-line todo list application using the todo.txt format.","fork":false,"url":"https://api.github.com/repos/bram85/topydo","forks_url":"https://api.github.com/repos/bram85/topydo/forks","keys_url":"https://api.github.com/repos/bram85/topydo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bram85/topydo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bram85/topydo/teams","hooks_url":"https://api.github.com/repos/bram85/topydo/hooks","issue_events_url":"https://api.github.com/repos/bram85/topydo/issues/events{/number}","events_url":"https://api.github.com/repos/bram85/topydo/events","assignees_url":"https://api.github.com/repos/bram85/topydo/assignees{/user}","branches_url":"https://api.github.com/repos/bram85/topydo/branches{/branch}","tags_url":"https://api.github.com/repos/bram85/topydo/tags","blobs_url":"https://api.github.com/repos/bram85/topydo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bram85/topydo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bram85/topydo/git/refs{/sha}","trees_url":"https://api.github.com/repos/bram85/topydo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bram85/topydo/statuses/{sha}","languages_url":"https://api.github.com/repos/bram85/topydo/languages","stargazers_url":"https://api.github.com/repos/bram85/topydo/stargazers","contributors_url":"https://api.github.com/repos/bram85/topydo/contributors","subscribers_url":"https://api.github.com/repos/bram85/topydo/subscribers","subscription_url":"https://api.github.com/repos/bram85/topydo/subscription","commits_url":"https://api.github.com/repos/bram85/topydo/commits{/sha}","git_commits_url":"https://api.github.com/repos/bram85/topydo/git/commits{/sha}","comments_url":"https://api.github.com/repos/bram85/topydo/comments{/number}","issue_comment_url":"https://api.github.com/repos/bram85/topydo/issues/comments{/number}","contents_url":"https://api.github.com/repos/bram85/topydo/contents/{+path}","compare_url":"https://api.github.com/repos/bram85/topydo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bram85/topydo/merges","archive_url":"https://api.github.com/repos/bram85/topydo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bram85/topydo/downloads","issues_url":"https://api.github.com/repos/bram85/topydo/issues{/number}","pulls_url":"https://api.github.com/repos/bram85/topydo/pulls{/number}","milestones_url":"https://api.github.com/repos/bram85/topydo/milestones{/number}","notifications_url":"https://api.github.com/repos/bram85/topydo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bram85/topydo/labels{/name}","releases_url":"https://api.github.com/repos/bram85/topydo/releases{/id}","created_at":"2014-10-19T13:49:43Z","updated_at":"2015-09-26T03:13:07Z","pushed_at":"2015-09-28T05:19:41Z","git_url":"git://github.com/bram85/topydo.git","ssh_url":"git@github.com:bram85/topydo.git","clone_url":"https://github.com/bram85/topydo.git","svn_url":"https://github.com/bram85/topydo","homepage":"","size":1926,"stargazers_count":77,"watchers_count":77,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":6,"forks":10,"open_issues":6,"watchers":77,"default_branch":"stable"}},"_links":{"self":{"href":"https://api.github.com/repos/bram85/topydo/pulls/52"},"html":{"href":"https://github.com/bram85/topydo/pull/52"},"issue":{"href":"https://api.github.com/repos/bram85/topydo/issues/52"},"comments":{"href":"https://api.github.com/repos/bram85/topydo/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/bram85/topydo/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/bram85/topydo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bram85/topydo/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/bram85/topydo/statuses/c454d042f7931b9a1a5debca8f60d9fcafc715aa"}}}}