commands: tie in a simple :w for now.
This commit is contained in:
parent
48ef6598db
commit
c408e7e01a
1 changed files with 5 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
_ => (),
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue