From c03991f110de5a60d39b39980d2b0501a5c5f7d6 Mon Sep 17 00:00:00 2001 From: mars Date: Fri, 14 Apr 2023 14:31:29 -0400 Subject: [PATCH] Rename minor modes to submodes in keybinds --- src/keybinds.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/keybinds.rs b/src/keybinds.rs index e53e219..5b7958d 100644 --- a/src/keybinds.rs +++ b/src/keybinds.rs @@ -86,7 +86,7 @@ impl Default for Keybinds { #[derive(Clone, Default)] pub struct ModeKeys { - pub minor_modes: HashMap, + pub submodes: HashMap, pub map: KeyMap, } @@ -95,13 +95,13 @@ where T: IntoIterator, { fn from(iter: T) -> Self { - let minor_modes = HashMap::new(); + let submodes = HashMap::new(); let mut map = KeyMap::new(); for (key, action) in iter { map.insert(*key, Keybind::Action(*action)); } - Self { minor_modes, map } + Self { submodes, map } } } @@ -114,7 +114,7 @@ impl ModeKeys { match value { Value::Table(table) => { let map = parse_key_map(table)?; - keys.minor_modes.insert(key, map); + keys.submodes.insert(key, map); } Value::String(keybind) => { let bind = Keybind::try_from(keybind.as_str())?;