From f6577f6eeb8df6f539d4cad57fca043ff8c84673 Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Mon, 13 May 2024 18:13:55 +0100 Subject: Added key binds to allow moving the line with the cursor on it up or down --- .config/helix/config.toml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to '.config/helix') diff --git a/.config/helix/config.toml b/.config/helix/config.toml index 86aeed6..f3eaacb 100644 --- a/.config/helix/config.toml +++ b/.config/helix/config.toml @@ -39,6 +39,20 @@ display-inlay-hints = true C-g = ":toggle-option indent-guides.render" C-o = ":config-open" C-r = ":config-reload" +# Move line up/down +A-k = [ + "extend_to_line_bounds", + "delete_selection", + "move_line_up", + "paste_before" +] + +A-j = [ + "extend_to_line_bounds", + "delete_selection", + "move_line_down", + "paste_before" +] [keys.normal.space.space] h = ':set gutters ["diagnostics","spacer","diff"]' -- cgit v1.2.3