From e72f927db361d41d243592452de6c6b148c7b1a8 Mon Sep 17 00:00:00 2001 From: morzel85 Date: Wed, 10 Aug 2022 15:12:59 +0200 Subject: [PATCH] Ctrl+h edit binding moved from emacs to common (#461) --- src/edit_mode/emacs.rs | 1 - src/edit_mode/keybindings.rs | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/edit_mode/emacs.rs b/src/edit_mode/emacs.rs index cf0a4bb..ccbfd80 100644 --- a/src/edit_mode/emacs.rs +++ b/src/edit_mode/emacs.rs @@ -51,7 +51,6 @@ pub fn default_emacs_keybindings() -> Keybindings { kb.add_binding(KM::CONTROL, KC::Char('k'), edit_bind(EC::CutToEnd)); kb.add_binding(KM::CONTROL, KC::Char('u'), edit_bind(EC::CutFromStart)); // Edits - kb.add_binding(KM::CONTROL, KC::Char('h'), edit_bind(EC::Backspace)); kb.add_binding(KM::CONTROL, KC::Char('t'), edit_bind(EC::SwapGraphemes)); // *** ALT *** diff --git a/src/edit_mode/keybindings.rs b/src/edit_mode/keybindings.rs index 9bc8f81..ca6b602 100644 --- a/src/edit_mode/keybindings.rs +++ b/src/edit_mode/keybindings.rs @@ -192,5 +192,6 @@ pub fn add_common_edit_bindings(kb: &mut Keybindings) { kb.add_binding(KM::CONTROL, KC::Backspace, edit_bind(EC::BackspaceWord)); kb.add_binding(KM::CONTROL, KC::Delete, edit_bind(EC::DeleteWord)); // Base commands should not affect cut buffer + kb.add_binding(KM::CONTROL, KC::Char('h'), edit_bind(EC::Backspace)); kb.add_binding(KM::CONTROL, KC::Char('w'), edit_bind(EC::BackspaceWord)); }