Skip to content

Commit

Permalink
Add spc w w for window mode
Browse files Browse the repository at this point in the history
  • Loading branch information
pickfire authored and archseer committed Jun 7, 2021
1 parent 3494bb8 commit 2066e86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
4 changes: 2 additions & 2 deletions book/src/keymap.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |

Expand Down Expand Up @@ -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 |
7 changes: 1 addition & 6 deletions helix-term/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 2066e86

Please sign in to comment.