From 994bc64679a36d52e3bc0bab8d2b6042a4e12cd0 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sat, 7 Oct 2023 17:45:55 +0400 Subject: Add gaps setting The past few refactors have led up to this point, and now it's finally possible. --- src/config.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/config.rs') diff --git a/src/config.rs b/src/config.rs index bb8cfcf6..6f695c34 100644 --- a/src/config.rs +++ b/src/config.rs @@ -24,6 +24,8 @@ pub struct Config { pub cursor: Cursor, #[knuffel(child, unwrap(children), default)] pub preset_column_widths: Vec, + #[knuffel(child, unwrap(argument), default = 16)] + pub gaps: u16, #[knuffel(child, default)] pub binds: Binds, #[knuffel(child, default)] @@ -528,6 +530,8 @@ mod tests { fixed 1280 } + gaps 8 + binds { Mod+T { spawn "alacritty"; } Mod+Q { close-window; } @@ -601,6 +605,7 @@ mod tests { PresetWidth::Fixed(960), PresetWidth::Fixed(1280), ], + gaps: 8, binds: Binds(vec![ Bind { key: Key { -- cgit