Add 'r' keybinding to refresh mail message list
This commit is contained in:
@@ -115,7 +115,8 @@ class EmailViewerApp(App):
|
||||
Binding("h", "toggle_header", "Toggle Envelope Header"),
|
||||
Binding("t", "create_task", "Create Task"),
|
||||
Binding("l", "open_links", "Show Links"),
|
||||
Binding("%", "reload", "Reload message list"),
|
||||
Binding("r", "reload", "Reload message list"),
|
||||
Binding("%", "reload", "Reload message list", show=False),
|
||||
Binding("1", "focus_1", "Focus Accounts Panel"),
|
||||
Binding("2", "focus_2", "Focus Folders Panel"),
|
||||
Binding("3", "focus_3", "Focus Envelopes Panel"),
|
||||
@@ -912,6 +913,11 @@ class EmailViewerApp(App):
|
||||
self.fetch_envelopes() if self.reload_needed else None
|
||||
self.show_message(self.message_store.get_newest_id())
|
||||
|
||||
def action_reload(self) -> None:
|
||||
"""Reload the message list."""
|
||||
self.fetch_envelopes()
|
||||
self.show_status("Reloading messages...")
|
||||
|
||||
def action_search(self) -> None:
|
||||
"""Open the search panel."""
|
||||
search_panel = self.query_one("#search_panel", SearchPanel)
|
||||
|
||||
Reference in New Issue
Block a user