From 4cbe72ec2d8a174e3c4f9bde2101aa189c7f38e7 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Fri, 15 May 2026 20:31:01 +0300 Subject: feat: add indexed keybind families --- src/config/model.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/config/model.rs') diff --git a/src/config/model.rs b/src/config/model.rs index 8ea52724..ed8c4dd5 100644 --- a/src/config/model.rs +++ b/src/config/model.rs @@ -123,10 +123,23 @@ pub struct KeysConfig { pub resize_mode: String, /// Toggle sidebar collapse. Default: "b" pub toggle_sidebar: String, + /// Optional indexed shortcuts expanded over number keys 1-9. + pub indexed: IndexedKeysConfig, /// Prefix-mode custom command bindings. pub command: Vec, } +#[derive(Debug, Default, Deserialize)] +#[serde(default)] +pub struct IndexedKeysConfig { + /// Modifier combo for tab shortcuts 1-9. Unset by default. + pub tabs: String, + /// Modifier combo for workspace shortcuts 1-9. Unset by default. + pub workspaces: String, + /// Modifier combo for agent shortcuts 1-9. Unset by default. + pub agents: String, +} + #[derive(Debug, Deserialize)] #[serde(default)] pub struct UiConfig { @@ -195,6 +208,7 @@ impl Default for KeysConfig { fullscreen: "f".into(), resize_mode: "r".into(), toggle_sidebar: "b".into(), + indexed: IndexedKeysConfig::default(), command: Vec::new(), } } -- cgit v1.2.3