on master help sign in
commands: tie in a simple :w for now.
c408e7eBlaž Hrastnik
helix-term/src/commands.rs+5
@@ -560,6 +560,11 @@ pub fn command_mode(cx: &mut Context) {
560 ["o", path] => {
560 ["o", path] => {
561 editor.open(path.into(), executor);
561 editor.open(path.into(), executor);
562 }
562 }
563+ ["w"] => {
564+ // TODO: non-blocking via save() command
565+ smol::block_on(editor.view_mut().doc.save());
566+ }
567+
563 _ => (),
568 _ => (),
564 }
569 }
565 },
570 },