From 79750131fb21b54c66dffe1f6e5de953d80abab6 Mon Sep 17 00:00:00 2001 From: Douglas <32344964+NotTheDr01ds@users.noreply.github.com> Date: Wed, 20 Nov 2024 07:42:18 -0500 Subject: [PATCH] Add Newline keybindings (#854) * Add Newline keybindings * Add Ctrl+J as newline --- src/edit_mode/keybindings.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/edit_mode/keybindings.rs b/src/edit_mode/keybindings.rs index e2e5e17f..7822ce0f 100644 --- a/src/edit_mode/keybindings.rs +++ b/src/edit_mode/keybindings.rs @@ -232,6 +232,9 @@ pub fn add_common_edit_bindings(kb: &mut Keybindings) { KC::Char('v'), edit_bind(EC::PasteSystem), ); + kb.add_binding(KM::ALT, KC::Enter, edit_bind(EC::InsertNewline)); + kb.add_binding(KM::SHIFT, KC::Enter, edit_bind(EC::InsertNewline)); + kb.add_binding(KM::CONTROL, KC::Char('j'), edit_bind(EC::InsertNewline)); } pub fn add_common_selection_bindings(kb: &mut Keybindings) {