on master help sign in
<space>w for save, <space>c for close current split.
commit865429643bf924e7b2b7fbbc7f239c469bbd22ca authorBlaž Hrastnik <blaz@mxxn.io> dateFri 9 Apr 2021, 17:46 (6 years ago) parent4e31d15
1 file changed+9
helix-term/src/commands.rs+9
helix-term/src/commands.rs+9
@@ -1873,6 +1873,15 @@ pub fn space_mode(cx: &mut Context) {
18731873 'f' => file_picker(cx),
18741874 'b' => buffer_picker(cx),
18751875 'v' => vsplit(cx),
1876+ 'w' => {
1877+ // save current buffer
1878+ let doc = cx.doc();
1879+ smol::block_on(doc.save());
1880+ }
1881+ 'c' => {
1882+ // close current split
1883+ cx.editor.close(cx.view_id);
1884+ }
18761885 // ' ' => toggle_alternate_buffer(cx),
18771886 _ => (),
18781887 }