aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-02-16 09:23:44 +0000
committerBlaž Hrastnik2021-02-16 09:23:44 +0000
commitc408e7e01a7fdff2ac2fb48883ab87f56a516214 (patch)
treef359d7057e6c486dd7bc9fcb74d7ef55674bc8aa /helix-term
parent48ef6598db8c4f0c93feb1acc4548d013e2e6158 (diff)
commands: tie in a simple :w for now.
Diffstat (limited to 'helix-term')
-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());
+ }
+
_ => (),
}
},