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:
parent
48ef6598db
commit
c408e7e01a
|
@ -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 New Issue