From 8b858f92da69cfb8fa43ec861cda46eeb6ef4bbe Mon Sep 17 00:00:00 2001 From: lukeflo Date: Wed, 8 Oct 2025 14:39:46 +0200 Subject: case parsing from config, needs to be implemented for citekey struct --- src/config.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/config.rs') diff --git a/src/config.rs b/src/config.rs index 8a333e4..a5df61c 100644 --- a/src/config.rs +++ b/src/config.rs @@ -149,7 +149,7 @@ pub struct Colors { #[derive(Debug, Clone, Serialize, Deserialize, PartialEq)] pub struct CitekeyFormatter { - pub fields: Vec, + pub fields: Option>, pub case: Option, } @@ -172,7 +172,7 @@ impl Default for BibiConfig { }, colors: Self::dark_colors(), citekey_formatter: CitekeyFormatter { - fields: Vec::new(), + fields: None, case: None, }, } @@ -202,7 +202,7 @@ impl BibiConfig { Self::dark_colors() }, citekey_formatter: CitekeyFormatter { - fields: Vec::new(), + fields: None, case: None, }, } @@ -400,6 +400,8 @@ mod tests { author_color = "38" title_color = "37" year_color = "135" + + [citekey_formatter] "#, )?; -- cgit v1.2.3