From 3a64f2df76a7ef2d04c6b29cf975d6f0f9534ce3 Mon Sep 17 00:00:00 2001 From: Nikita Revenco <154856872+NikitaRevenco@users.noreply.github.com> Date: Fri, 15 Nov 2024 21:11:04 +0000 Subject: [PATCH] feat: remap add cursor above to D instead of Alt-C --- book/src/keymap.md | 2 +- helix-term/src/keymap/default.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/book/src/keymap.md b/book/src/keymap.md index 71ae5e31f..40a9aadc8 100644 --- a/book/src/keymap.md +++ b/book/src/keymap.md @@ -127,7 +127,7 @@ ### Selection manipulation | `,` | Keep only the primary selection | `keep_primary_selection` | | `Alt-,` | Remove the primary selection | `remove_primary_selection` | | `C` | Copy selection onto the next line (Add cursor below) | `copy_selection_on_next_line` | -| `Alt-C` | Copy selection onto the previous line (Add cursor above) | `copy_selection_on_prev_line` | +| `D` | Copy selection onto the previous line (Add cursor above) | `copy_selection_on_prev_line` | | `(` | Rotate main selection backward | `rotate_selections_backward` | | `)` | Rotate main selection forward | `rotate_selections_forward` | | `Alt-(` | Rotate selection contents backward | `rotate_selection_contents_backward` | diff --git a/helix-term/src/keymap/default.rs b/helix-term/src/keymap/default.rs index 5a3e8eed4..9476e070d 100644 --- a/helix-term/src/keymap/default.rs +++ b/helix-term/src/keymap/default.rs @@ -75,7 +75,7 @@ pub fn default() -> HashMap { "A-c" => change_selection_noyank, "C" => copy_selection_on_next_line, - "A-C" => copy_selection_on_prev_line, + "D" => copy_selection_on_prev_line, "s" => select_regex,