fix(multiverse): Add a shortcut to mark rooms as read back

This commit is contained in:
Damir Jelić
2025-04-22 17:00:56 +02:00
parent 7adf60d2c6
commit 59ecb1edbd
2 changed files with 8 additions and 0 deletions

View File

@@ -352,6 +352,10 @@ impl App {
self.room_view.set_selected_room(room_id);
}
Event::Key(KeyEvent { code: Char('m'), modifiers: KeyModifiers::ALT, .. }) => {
self.room_view.mark_as_read().await
}
Event::Key(KeyEvent { code: Char('q'), modifiers: KeyModifiers::CONTROL, .. }) => {
if !matches!(self.state.global_mode, GlobalMode::Default) {
self.set_global_mode(GlobalMode::Default);

View File

@@ -27,6 +27,10 @@ impl Widget for &mut HelpView {
Row::new(vec![Cell::from("ALT-l"), Cell::from("Open the linked chunk details view")]),
Row::new(vec![Cell::from("ALT-e"), Cell::from("Open the events details view")]),
Row::new(vec![Cell::from("ALT-r"), Cell::from("Open the read receipt details view")]),
Row::new(vec![
Cell::from("ALT-m"),
Cell::from("Mark the currently selected room as read"),
]),
Row::new(vec![Cell::from("Ctrl-q"), Cell::from("Quit Multiverse")]),
Row::new(vec![
Cell::from("Ctrl-j / Ctrl-down"),