commands: tie in a simple :w for now.

pull/8/head
Blaž Hrastnik 4 years ago
parent 48ef6598db
commit c408e7e01a

@ -560,6 +560,11 @@ pub fn command_mode(cx: &mut Context) {
["o", path] => { ["o", path] => {
editor.open(path.into(), executor); editor.open(path.into(), executor);
} }
["w"] => {
// TODO: non-blocking via save() command
smol::block_on(editor.view_mut().doc.save());
}
_ => (), _ => (),
} }
}, },

Loading…
Cancel
Save