Skip to content

Commit 6c9b33a

Browse files
committed
added space to page
1 parent 804626c commit 6c9b33a

4 files changed

Lines changed: 38 additions & 35 deletions

File tree

poetry.lock

Lines changed: 29 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ classifiers = [
2323

2424
[tool.poetry.dependencies]
2525
python = "^3.7"
26-
rich = "^11.2.0"
26+
rich = "^12.0.0"
2727
click = "^8.0.0"
2828
requests = "^2.0.0"
2929
textual = "^0.1.15"
30-
rich-rst = "^1.0.0"
30+
rich-rst = "^1.1.7"
3131

3232
[tool.poetry.dev-dependencies]
33-
black = "21.12b0"
34-
mypy = "^0.931"
33+
black = "21.1.0"
34+
mypy = "0.941"
3535

3636
[build-system]
3737
requires = ["poetry-core>=1.0.0"]

src/rich_cli/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ def print_usage() -> None:
558558
on_error("unable to read json", error)
559559

560560
elif resource_format == MARKDOWN:
561-
from rich.markdown import Markdown
561+
from .markdown import Markdown
562562

563563
markdown_data, lexer = read_resource(resource, lexer)
564564
renderable = Markdown(markdown_data, hyperlinks=hyperlinks)

src/rich_cli/pager.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ def __init__(
5858
async def on_load(self, event: events.Load) -> None:
5959
await self.bind("q", "quit", "Quit")
6060

61+
async def on_key(self, event: events.Key) -> None:
62+
if event.key == " ":
63+
self.body.page_down()
64+
6165
async def on_mount(self, event: events.Mount) -> None:
6266
self.body = body = ScrollView(auto_width=True)
6367

0 commit comments

Comments
 (0)