Skip to content

Commit

Permalink
Merge pull request #70 from waweic/master
Browse files Browse the repository at this point in the history
Added an option to reverse the timeline
  • Loading branch information
ihabunek committed Jul 28, 2018
2 parents 5871916 + d910cf9 commit 881872e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions toot/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ def timeline(app, user, args):
else:
items = api.timeline_home(app, user)

if args.reverse:
items = reversed(items)

print_timeline(items)


Expand Down
5 changes: 5 additions & 0 deletions toot/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,11 @@ def visibility(value):
"default": False,
"help": "Show only statuses from local instance (public and tag timelines only).",
}),
(["-r", "--reverse"], {
"action": "store_true",
"default": False,
"help": "Reverse the order of the shown timeline (to new posts at the bottom)",
}),
],
require_auth=True,
),
Expand Down

0 comments on commit 881872e

Please sign in to comment.