From f579297266120e9ca95c4046c374c8f0f68f0097 Mon Sep 17 00:00:00 2001 From: NotTheDr01ds <32344964+NotTheDr01ds@users.noreply.github.com> Date: Tue, 19 Nov 2024 10:26:53 -0500 Subject: [PATCH] Add Newline keybindings --- src/edit_mode/keybindings.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/edit_mode/keybindings.rs b/src/edit_mode/keybindings.rs index e2e5e17f..5b49b511 100644 --- a/src/edit_mode/keybindings.rs +++ b/src/edit_mode/keybindings.rs @@ -232,6 +232,8 @@ 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)); } pub fn add_common_selection_bindings(kb: &mut Keybindings) {