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