diff --git a/helix-term/src/keymap/default.rs b/helix-term/src/keymap/default.rs index d2bfaccfee4de..dc8dbfcec7d54 100644 --- a/helix-term/src/keymap/default.rs +++ b/helix-term/src/keymap/default.rs @@ -311,8 +311,8 @@ pub fn default() -> HashMap { "C-a" => increment, "C-x" => decrement, - "C-up" => move_selection_above, - "C-down" => move_selection_below, + "C-k" => move_selection_above, + "C-j" => move_selection_below, }); let mut select = normal.clone(); select.merge_nodes(keymap!({ "Select mode" diff --git a/helix-term/tests/test/commands.rs b/helix-term/tests/test/commands.rs index 697e5ed3c317d..2e793b72a538c 100644 --- a/helix-term/tests/test/commands.rs +++ b/helix-term/tests/test/commands.rs @@ -296,7 +296,7 @@ async fn test_move_selection_single_selection_up() -> anyhow::Result<()> { dddddd "}) .as_str(), - "", + "", platform_line(indoc! {" aaaaaa cc#[|c]#ccc @@ -320,7 +320,7 @@ async fn test_move_selection_single_selection_down() -> anyhow::Result<()> { dddddd "}) .as_str(), - "", + "", platform_line(indoc! {" bbbbbb aa#[|a]#aaa @@ -344,7 +344,7 @@ async fn test_move_selection_single_selection_top_up() -> anyhow::Result<()> { cccccc dddddd"}) .as_str(), - "", + "", platform_line(indoc! {" aa#[|a]#aaa bbbbbb @@ -364,7 +364,7 @@ async fn test_move_selection_single_selection_bottom_down() -> anyhow::Result<() // linebreak, making it impossible to test test(( "aaaaaa\nbbbbbb\ncccccc\ndd#[|d]#ddd", - "", + "", "aaaaaa\nbbbbbb\ncccccc\ndd#[|d]#ddd", )) .await?; @@ -383,7 +383,7 @@ async fn test_move_selection_block_up() -> anyhow::Result<()> { eeeeee "}) .as_str(), - "", + "", platform_line(indoc! {" bb#[bbbb ccc|]#ccc @@ -409,7 +409,7 @@ async fn test_move_selection_block_down() -> anyhow::Result<()> { eeeeee "}) .as_str(), - "", + "", platform_line(indoc! {" dddddd #[|aaaaaa @@ -435,7 +435,7 @@ async fn test_move_two_cursors_down() -> anyhow::Result<()> { eeeeee "}) .as_str(), - "", + "", platform_line(indoc! {" aaaaaa cccccc