Keep primary selection as space+space.

pull/11/head
Blaž Hrastnik 4 years ago
parent 73f4abbb37
commit 392c4a9c02

@ -35,10 +35,6 @@
- [] jump to alt buffer - [] jump to alt buffer
- [ ] load toml configs, themes, tabsize/identation
- [ ] draw separator line between views
- [ ] lsp: signature help - [ ] lsp: signature help
- [x] lsp: hover - [x] lsp: hover
- [ ] lsp: document symbols (nested/vec) - [ ] lsp: document symbols (nested/vec)

@ -1898,6 +1898,8 @@ pub fn space_mode(cx: &mut Context) {
cx.editor.close(cx.view_id); cx.editor.close(cx.view_id);
} }
// ' ' => toggle_alternate_buffer(cx), // ' ' => toggle_alternate_buffer(cx),
// TODO: temporary since space mode took it's old key
' ' => keep_primary_selection(cx),
_ => (), _ => (),
} }
} }

@ -220,6 +220,7 @@ pub fn default() -> Keymaps {
shift!('K') => commands::keep_selections, shift!('K') => commands::keep_selections,
// TODO: and another method for inverse // TODO: and another method for inverse
// TODO: clashes with space mode
key!(' ') => commands::keep_primary_selection, key!(' ') => commands::keep_primary_selection,
// key!('q') => commands::record_macro, // key!('q') => commands::record_macro,

Loading…
Cancel
Save