Skip to content

Commit

Permalink
Updated patch
Browse files Browse the repository at this point in the history
Corrected code here
  • Loading branch information
danschwarz authored and ihabunek committed Nov 22, 2022
1 parent 5aa779e commit 9abaebd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions toot/tui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,12 @@ def unhandled_input(self, key):
if not self.overlay:
self.show_help()

elif key in (','):
if not self.overlay:
self.timeline_generator = api.home_timeline_generator(
self.app, self.user, limit=40)
self.async_load_timeline(is_initial=True, timeline_name=self.timeline.name)

elif key == 'esc':
if self.overlay:
self.close_overlay()
Expand Down
1 change: 1 addition & 0 deletions toot/tui/overlays.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ def link(text, url):
yield urwid.Text(h(" [Q] - quit toot"))
yield urwid.Text(h(" [G] - go to - switch timelines"))
yield urwid.Text(h(" [P] - save/unsave (pin) current timeline"))
yield urwid.Text(h(" [,] - refresh current timeline"))
yield urwid.Text(h(" [H] - show this help"))
yield urwid.Divider()
yield urwid.Text(("bold", "Status keys"))
Expand Down

0 comments on commit 9abaebd

Please sign in to comment.