Run curses with 20 statuses per page by default
This commit is contained in:
parent
912e7c8bc4
commit
c862df8e40
1 changed files with 23 additions and 14 deletions
|
@ -85,7 +85,7 @@ status_id_arg = (["status_id"], {
|
||||||
})
|
})
|
||||||
|
|
||||||
# Arguments for selecting a timeline (see `toot.commands.get_timeline_generator`)
|
# Arguments for selecting a timeline (see `toot.commands.get_timeline_generator`)
|
||||||
timeline_args = [
|
common_timeline_args = [
|
||||||
(["-p", "--public"], {
|
(["-p", "--public"], {
|
||||||
"action": "store_true",
|
"action": "store_true",
|
||||||
"default": False,
|
"default": False,
|
||||||
|
@ -108,13 +108,33 @@ timeline_args = [
|
||||||
"type": int,
|
"type": int,
|
||||||
"help": "show timeline for given list.",
|
"help": "show timeline for given list.",
|
||||||
}),
|
}),
|
||||||
|
]
|
||||||
|
|
||||||
|
timeline_args = common_timeline_args + [
|
||||||
(["-c", "--count"], {
|
(["-c", "--count"], {
|
||||||
"type": timeline_count,
|
"type": timeline_count,
|
||||||
"help": "number of toots to show per page (1-20, default 10).",
|
"help": "number of toots to show per page (1-20, default 10).",
|
||||||
"default": 10,
|
"default": 10,
|
||||||
}),
|
}),
|
||||||
|
(["-r", "--reverse"], {
|
||||||
|
"action": "store_true",
|
||||||
|
"default": False,
|
||||||
|
"help": "Reverse the order of the shown timeline (to new posts at the bottom)",
|
||||||
|
}),
|
||||||
|
(["-1", "--once"], {
|
||||||
|
"action": "store_true",
|
||||||
|
"default": False,
|
||||||
|
"help": "Only show the first <count> toots, do not prompt to continue.",
|
||||||
|
}),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
curses_args = common_timeline_args + [
|
||||||
|
(["-c", "--count"], {
|
||||||
|
"type": timeline_count,
|
||||||
|
"help": "number of toots to show per page (1-20, default 20).",
|
||||||
|
"default": 20,
|
||||||
|
}),
|
||||||
|
]
|
||||||
|
|
||||||
AUTH_COMMANDS = [
|
AUTH_COMMANDS = [
|
||||||
Command(
|
Command(
|
||||||
|
@ -219,24 +239,13 @@ READ_COMMANDS = [
|
||||||
Command(
|
Command(
|
||||||
name="timeline",
|
name="timeline",
|
||||||
description="Show recent items in a timeline (home by default)",
|
description="Show recent items in a timeline (home by default)",
|
||||||
arguments=timeline_args + [
|
arguments=timeline_args,
|
||||||
(["-r", "--reverse"], {
|
|
||||||
"action": "store_true",
|
|
||||||
"default": False,
|
|
||||||
"help": "Reverse the order of the shown timeline (to new posts at the bottom)",
|
|
||||||
}),
|
|
||||||
(["-1", "--once"], {
|
|
||||||
"action": "store_true",
|
|
||||||
"default": False,
|
|
||||||
"help": "Only show the first <count> toots, do not prompt to continue.",
|
|
||||||
}),
|
|
||||||
],
|
|
||||||
require_auth=True,
|
require_auth=True,
|
||||||
),
|
),
|
||||||
Command(
|
Command(
|
||||||
name="curses",
|
name="curses",
|
||||||
description="An experimental timeline app (doesn't work on Windows)",
|
description="An experimental timeline app (doesn't work on Windows)",
|
||||||
arguments=timeline_args,
|
arguments=curses_args,
|
||||||
require_auth=False,
|
require_auth=False,
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue