Add --reverse option to notifications

fixes #151
pull/171/head
Ivan Habunek 2020-05-11 13:49:00 +02:00
rodzic a65470fa9d
commit 3829a57909
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: CDBD63C43A30BB95
4 zmienionych plików z 10 dodań i 0 usunięć

Wyświetl plik

@ -7,6 +7,7 @@ Changelog
* Fix access to public and tag timelines when on private mastodon instances
(#168)
* Add `--reverse` option to `toot notifications` (#151)
* TUI: Add opton to pin/save tag timelines (#163, thanks @dlax)
**0.26.0 (2020-04-15)**

Wyświetl plik

@ -2,6 +2,7 @@
date: "TBD"
changes:
- "Fix access to public and tag timelines when on private mastodon instances (#168)"
- "Add `--reverse` option to `toot notifications` (#151)"
- "TUI: Add opton to pin/save tag timelines (#163, thanks @dlax)"
0.26.0:

Wyświetl plik

@ -321,6 +321,9 @@ def notifications(app, user, args):
print_out("<yellow>No notification</yellow>")
return
if args.reverse:
notifications = reversed(notifications)
print_notifications(notifications)

Wyświetl plik

@ -238,6 +238,11 @@ READ_COMMANDS = [
"action": 'store_true',
"default": False,
}),
(["-r", "--reverse"], {
"action": "store_true",
"default": False,
"help": "Reverse the order of the shown notifications (newest on top)",
}),
],
require_auth=True,
),