1
0
Fork 0
mirror of https://github.com/helix-editor/helix synced 2024-06-01 07:46:05 +02:00

commands: tie in a simple :w for now.

This commit is contained in:
Blaž Hrastnik 2021-02-16 18:23:44 +09:00
parent 48ef6598db
commit c408e7e01a

View File

@ -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());
}
_ => (),
}
},