summaryrefslogtreecommitdiffstats
path: root/src/config
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2023-11-08 07:08:48 +0800
committerGitHub <noreply@github.com>2023-11-08 07:08:48 +0800
commite8461b846260299cb0a60de143950fbf5e91adfa (patch)
tree13a54a99697183fd3987763f5e5832f4e929aec2 /src/config
parentc99bd015aa6ede7d306838c71d0ad6b89950a56b (diff)
downloadaichat-e8461b846260299cb0a60de143950fbf5e91adfa.tar.gz
refactor: output info includes auto_copy and light_theme (#230)
Diffstat (limited to 'src/config')
-rw-r--r--src/config/mod.rs7
1 files changed, 4 insertions, 3 deletions
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<f64>,
+ /// 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, <max-width>)
@@ -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()?)),