aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/keymap/default.rs
diff options
context:
space:
mode:
authorJJ2023-11-01 02:41:44 +0000
committerJJ2023-11-01 04:08:53 +0000
commit696fa18edece20f10d8b276728c55ad712be1da9 (patch)
tree8d70c0bfde06c781146b6646834613d8b37c0e29 /helix-term/src/keymap/default.rs
parent7260812a720336111dc4643c9852e34820745338 (diff)
Add support for moving selections above and below
ref: https://github.com/helix-editor/helix/issues/2245 ref: https://github.com/helix-editor/helix/pull/4545 Co-authored-by: sireliah <sajuukk@gmail.com>
Diffstat (limited to 'helix-term/src/keymap/default.rs')
-rw-r--r--helix-term/src/keymap/default.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/helix-term/src/keymap/default.rs b/helix-term/src/keymap/default.rs
index 58e8fdad..9b93c573 100644
--- a/helix-term/src/keymap/default.rs
+++ b/helix-term/src/keymap/default.rs
@@ -324,6 +324,8 @@ pub fn default() -> HashMap<Mode, KeyTrie> {
"C-a" => increment,
"C-x" => decrement,
+ "C-k" => move_selection_above,
+ "C-j" => move_selection_below,
});
let mut select = normal.clone();
select.merge_nodes(keymap!({ "Select mode"