diff options
author | Blaž Hrastnik | 2021-02-16 09:23:44 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-02-16 09:23:44 +0000 |
commit | c408e7e01a7fdff2ac2fb48883ab87f56a516214 (patch) | |
tree | f359d7057e6c486dd7bc9fcb74d7ef55674bc8aa /helix-term/src | |
parent | 48ef6598db8c4f0c93feb1acc4548d013e2e6158 (diff) |
commands: tie in a simple :w for now.
Diffstat (limited to 'helix-term/src')
-rw-r--r-- | helix-term/src/commands.rs | 5 |
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()); + } + _ => (), } }, |