Add spc w w for window mode

pull/157/head
Ivan Tham 4 years ago committed by Blaž Hrastnik
parent 3494bb8ef0
commit 2066e866c7

@ -30,7 +30,7 @@
| g | Enter goto mode | | g | Enter goto mode |
| : | Enter command mode | | : | Enter command mode |
| z | Enter view mode | | z | Enter view mode |
| ctrl-w | Enter window mode | | ctrl-w | Enter window mode (maybe will be remove for spc w w later) |
| space | Enter space mode | | space | Enter space mode |
| K | Show documentation for the item under the cursor | | K | Show documentation for the item under the cursor |
@ -151,5 +151,5 @@ This layer is a kludge of mappings I had under leader key in neovim.
|-----|-----------| |-----|-----------|
| f | Open file picker | | f | Open file picker |
| b | Open buffer picker | | b | Open buffer picker |
| w | Save changes to file | | w | Enter window mode |
| space | Keep primary selection TODO: it's here because space mode replaced it | | space | Keep primary selection TODO: it's here because space mode replaced it |

@ -2381,12 +2381,7 @@ pub fn space_mode(cx: &mut Context) {
match ch { match ch {
'f' => file_picker(cx), 'f' => file_picker(cx),
'b' => buffer_picker(cx), 'b' => buffer_picker(cx),
'w' => { 'w' => window_mode(cx),
// save current buffer
let (view, doc) = cx.current();
doc.format(view.id); // TODO: merge into save
tokio::spawn(doc.save());
}
// ' ' => toggle_alternate_buffer(cx), // ' ' => toggle_alternate_buffer(cx),
// TODO: temporary since space mode took it's old key // TODO: temporary since space mode took it's old key
' ' => keep_primary_selection(cx), ' ' => keep_primary_selection(cx),

Loading…
Cancel
Save