on master help sign in
commands: tie in a simple :w for now.
commitc408e7e01a7fdff2ac2fb48883ab87f56a516214 authorBlaž Hrastnik <blaz@mxxn.io> dateTue 16 Feb 2021, 18:23 (6 years ago) parent48ef659
1 file changed+5
helix-term/src/commands.rs+5
helix-term/src/commands.rs+5
@@ -560,6 +560,11 @@ pub fn command_mode(cx: &mut Context) {
560560 ["o", path] => {
561561 editor.open(path.into(), executor);
562562 }
563+ ["w"] => {
564+ // TODO: non-blocking via save() command
565+ smol::block_on(editor.view_mut().doc.save());
566+ }
567+
563568 _ => (),
564569 }
565570 },