From 3903307e72205aa48f2ba5b62a303aa7d13b8a00 Mon Sep 17 00:00:00 2001 From: Daniel Schwarz Date: Sun, 2 Jul 2023 11:41:26 -0400 Subject: [PATCH] Changed Help key to ?, Documented Save key correctly as E Fixes #280, #370 --- toot/tui/app.py | 2 +- toot/tui/overlays.py | 4 ++-- toot/tui/timeline.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/toot/tui/app.py b/toot/tui/app.py index ed8a2ea..510c687 100644 --- a/toot/tui/app.py +++ b/toot/tui/app.py @@ -724,7 +724,7 @@ class TUI(urwid.Frame): if not self.overlay: self.show_goto_menu() - elif key in ('h', 'H'): + elif key == '?': if not self.overlay: self.show_help() diff --git a/toot/tui/overlays.py b/toot/tui/overlays.py index 9582b92..f09ed5c 100644 --- a/toot/tui/overlays.py +++ b/toot/tui/overlays.py @@ -211,9 +211,9 @@ class Help(urwid.Padding): yield urwid.Divider() 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(" [E] - save/unsave (pin) current timeline")) yield urwid.Text(h(" [,] - refresh current timeline")) - yield urwid.Text(h(" [H] - show this help")) + yield urwid.Text(h(" [?] - show this help")) yield urwid.Divider() yield urwid.Text(("bold", "Status keys")) yield urwid.Divider() diff --git a/toot/tui/timeline.py b/toot/tui/timeline.py index 58bc7f6..d8e2e23 100644 --- a/toot/tui/timeline.py +++ b/toot/tui/timeline.py @@ -113,7 +113,7 @@ class Timeline(urwid.Columns): "[Z]oom", "Tra[n]slate" if self.tui.can_translate else "", "Cop[y]", - "[H]elp", + "Help[?]", ] options = "\n" + " ".join(o for o in options if o) options = highlight_keys(options, "white_bold", "cyan")