diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 69c7ad58..5cb47485 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -560,6 +560,11 @@ pub fn command_mode(cx: &mut Context) { ["o", path] => { editor.open(path.into(), executor); } + ["w"] => { + // TODO: non-blocking via save() command + smol::block_on(editor.view_mut().doc.save()); + } + _ => (), } },