From 865429643bf924e7b2b7fbbc7f239c469bbd22ca Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Fri, 9 Apr 2021 17:46:08 +0900 Subject: w for save, c for close current split. --- helix-term/src/commands.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'helix-term/src') diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 0cbc3f9d..53ec2fbf 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -1873,6 +1873,15 @@ pub fn space_mode(cx: &mut Context) { 'f' => file_picker(cx), 'b' => buffer_picker(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), _ => (), } -- cgit v1.2.3-70-g09d2