mirror of https://github.com/helix-editor/helix
<space>w for save, <space>c for close current split.
parent
4e31d1521b
commit
865429643b
|
@ -1873,6 +1873,15 @@ pub fn space_mode(cx: &mut Context) {
|
||||||
'f' => file_picker(cx),
|
'f' => file_picker(cx),
|
||||||
'b' => buffer_picker(cx),
|
'b' => buffer_picker(cx),
|
||||||
'v' => vsplit(cx),
|
'v' => vsplit(cx),
|
||||||
|
'w' => {
|
||||||
|
// save current buffer
|
||||||
|
let doc = cx.doc();
|
||||||
|
smol::block_on(doc.save());
|
||||||
|
}
|
||||||
|
'c' => {
|
||||||
|
// close current split
|
||||||
|
cx.editor.close(cx.view_id);
|
||||||
|
}
|
||||||
// ' ' => toggle_alternate_buffer(cx),
|
// ' ' => toggle_alternate_buffer(cx),
|
||||||
_ => (),
|
_ => (),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue