From e8461b846260299cb0a60de143950fbf5e91adfa Mon Sep 17 00:00:00 2001 From: sigoden Date: Wed, 8 Nov 2023 07:08:48 +0800 Subject: refactor: output info includes auto_copy and light_theme (#230) --- src/config/mod.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/config/mod.rs') diff --git a/src/config/mod.rs b/src/config/mod.rs index 05c681b..5219727 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -46,12 +46,12 @@ pub struct Config { /// GPT temperature, between 0 and 2 #[serde(rename(serialize = "temperature", deserialize = "temperature"))] pub default_temperature: Option, + /// Dry-run flag + pub dry_run: bool, /// Whether to save the message pub save: bool, /// Whether to disable highlight pub highlight: bool, - /// Dry-run flag - pub dry_run: bool, /// Whether to use a light theme pub light_theme: bool, /// Specify the text-wrapping mode (no, auto, ) @@ -366,9 +366,10 @@ impl Config { ("dry_run", self.dry_run.to_string()), ("save", self.save.to_string()), ("highlight", self.highlight.to_string()), + ("light_theme", self.light_theme.to_string()), ("wrap", wrap), ("wrap_code", self.wrap_code.to_string()), - ("light_theme", self.light_theme.to_string()), + ("auto_copy", self.auto_copy.to_string()), ("keybindings", self.keybindings.stringify().into()), ("prelude", prelude), ("config_file", display_path(&Self::config_file()?)), -- cgit v1.2.3