Add spc w w for window mode
This commit is contained in:
parent
3494bb8ef0
commit
2066e866c7
2 changed files with 3 additions and 8 deletions
|
@ -30,7 +30,7 @@
|
|||
| g | Enter goto mode |
|
||||
| : | Enter command 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 |
|
||||
| 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 |
|
||||
| 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 |
|
||||
|
|
|
@ -2381,12 +2381,7 @@ pub fn space_mode(cx: &mut Context) {
|
|||
match ch {
|
||||
'f' => file_picker(cx),
|
||||
'b' => buffer_picker(cx),
|
||||
'w' => {
|
||||
// save current buffer
|
||||
let (view, doc) = cx.current();
|
||||
doc.format(view.id); // TODO: merge into save
|
||||
tokio::spawn(doc.save());
|
||||
}
|
||||
'w' => window_mode(cx),
|
||||
// ' ' => toggle_alternate_buffer(cx),
|
||||
// TODO: temporary since space mode took it's old key
|
||||
' ' => keep_primary_selection(cx),
|
||||
|
|
Loading…
Reference in a new issue