Mark all messages as seen
This commit is contained in:
parent
43247e2a5c
commit
573f231466
4 changed files with 35 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue