1
0
Fork 0
mirror of https://github.com/helix-editor/helix synced 2024-06-12 20:46:17 +02:00

Keep primary selection as space+space.

This commit is contained in:
Blaž Hrastnik 2021-04-10 00:21:54 +09:00
parent 73f4abbb37
commit 392c4a9c02
3 changed files with 3 additions and 4 deletions

View File

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

View File

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

View File

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