From 06bcd06a17be3bd242e2b8230dd9b803b1969f3c Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Thu, 21 May 2026 15:17:37 +0300 Subject: feat: use local keybindings for remote attach --- src/config/model.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/config/model.rs') diff --git a/src/config/model.rs b/src/config/model.rs index 40d425a3..e099d510 100644 --- a/src/config/model.rs +++ b/src/config/model.rs @@ -89,7 +89,7 @@ pub struct LoadedConfig { pub invalid_sections: Vec, } -#[derive(Debug, Deserialize)] +#[derive(Debug, Clone, Deserialize, Serialize)] #[serde(default)] pub struct KeysConfig { /// Prefix key to enter prefix mode (e.g. "ctrl+b", "f12", "esc"). @@ -168,10 +168,11 @@ pub struct KeysConfig { /// Optional indexed shortcuts expanded over number keys 1-9. pub indexed: IndexedKeysConfig, /// Prefix-mode custom command bindings. + #[serde(skip_serializing_if = "Vec::is_empty")] pub command: Vec, } -#[derive(Debug, Default, Deserialize)] +#[derive(Debug, Default, Clone, Deserialize, Serialize)] #[serde(default)] pub struct IndexedKeysConfig { /// Modifier combo for tab shortcuts 1-9. Unset by default. -- cgit v1.2.3