Add key binding and menu item for Save All

This commit is contained in:
Max Brunsfeld 2022-05-23 16:06:56 -07:00
parent 0becbe482a
commit 7f92401bca
2 changed files with 6 additions and 1 deletions

View file

@ -220,7 +220,8 @@
"cmd-t": "project_symbols::Toggle",
"cmd-p": "file_finder::Toggle",
"cmd-shift-P": "command_palette::Toggle",
"cmd-shift-M": "diagnostics::Deploy"
"cmd-shift-M": "diagnostics::Deploy",
"cmd-alt-s": "workspace::SaveAll"
}
},
// Bindings from Sublime Text

View file

@ -54,6 +54,10 @@ pub fn menus() -> Vec<Menu<'static>> {
name: "Save As…",
action: Box::new(workspace::SaveAs),
},
MenuItem::Action {
name: "Save All",
action: Box::new(workspace::SaveAll),
},
MenuItem::Action {
name: "Close Editor",
action: Box::new(workspace::CloseActiveItem),