Mark all messages as seen

This commit is contained in:
Joscha 2022-08-08 15:37:43 +02:00
parent 43247e2a5c
commit 573f231466
4 changed files with 35 additions and 2 deletions

View file

@ -97,7 +97,7 @@ impl<M: Msg, S: MsgStore<M>> InnerTreeViewState<M, S> {
pub fn list_action_key_bindings(&self, bindings: &mut KeyBindingsList) {
bindings.binding("s", "toggle current message's seen status");
bindings.binding("S", "mark all visible messages as seen");
// bindings.binding("ctrl+S", "mark all messages as seen");
bindings.binding("ctrl+S", "mark all messages as seen");
}
async fn handle_action_key_event(&mut self, event: KeyEvent, id: Option<&M::Id>) -> bool {
@ -116,6 +116,11 @@ impl<M: Msg, S: MsgStore<M>> InnerTreeViewState<M, S> {
}
return true;
}
key!(Ctrl + 'S') => {
// Ctrl + Shift + s, extra hard to hit accidentally
self.store.set_all_seen(true).await;
return true;
}
_ => {}
}
false