Skip to content

Commit 6a444d5

Browse files
committed
Enable pager and clear by default for timelines
1 parent 233cbaa commit 6a444d5

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ which is now marked as deprecated. The reason for this change is that
1111
various timelines require different options and having separate commands
1212
makes them easier to implement and use.
1313

14+
New timeline commands include new paging logic which will print as many
15+
statuses as can fit on your screen at once, and clear the screen before
16+
printing the next batch. See help for `--pager` and `--clear` options.
17+
1418

1519
* BREAKING: Remove deprecated commands: `tags_followed`, `tags_follow`, and
1620
`tags tags_unfollow`. Use `tags followed`, `tags follow`, and `tags tags

changelog.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
which is now marked as deprecated. The reason for this change is that
77
various timelines require different options and having separate commands
88
makes them easier to implement and use.
9+
10+
New timeline commands include new paging logic which will print as many
11+
statuses as can fit on your screen at once, and clear the screen before
12+
printing the next batch. See help for `--pager` and `--clear` options.
913
changes:
1014
- "BREAKING: Remove deprecated commands: `tags_followed`, `tags_follow`, and `tags tags_unfollow`. Use `tags followed`, `tags follow`, and `tags tags unfollow` instead."
1115
- "BREAKING: Remove deprecated `lists` command for listing lists in favour of `lists list`"

docs/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ which is now marked as deprecated. The reason for this change is that
1111
various timelines require different options and having separate commands
1212
makes them easier to implement and use.
1313

14+
New timeline commands include new paging logic which will print as many
15+
statuses as can fit on your screen at once, and clear the screen before
16+
printing the next batch. See help for `--pager` and `--clear` options.
17+
1418

1519
* BREAKING: Remove deprecated commands: `tags_followed`, `tags_follow`, and
1620
`tags tags_unfollow`. Use `tags followed`, `tags follow`, and `tags tags

toot/cli/timelines_v2.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,13 @@ def common_timeline_options(func):
4747
"-p/ ",
4848
"--pager/--no-pager",
4949
help="Page the results",
50-
is_flag=True,
50+
default=True,
5151
)
5252
@click.option(
5353
"-c",
5454
"--clear/--no-clear",
5555
help="Clear the screen before printing. If paged, clear before each page.",
56+
default=True,
5657
)
5758
@wraps(func)
5859
def wrapper(*args, **kwargs):

0 commit comments

Comments
 (0)