aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/commands.rs5
1 files changed, 5 insertions, 0 deletions
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());
+ }
+
_ => (),
}
},