From c408e7e01a7fdff2ac2fb48883ab87f56a516214 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Tue, 16 Feb 2021 18:23:44 +0900 Subject: commands: tie in a simple :w for now. --- helix-term/src/commands.rs | 5 +++++ 1 file changed, 5 insertions(+) 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()); + } + _ => (), } }, -- cgit v1.2.3-70-g09d2