From bd3fc8e657777e58976aa06756ccc0a151bd0ea3 Mon Sep 17 00:00:00 2001 From: sigoden Date: Tue, 31 Oct 2023 17:34:16 +0800 Subject: chore: refactor config description --- src/config/mod.rs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/config/mod.rs') diff --git a/src/config/mod.rs b/src/config/mod.rs index a6ac9dc..c05d2e9 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -54,24 +54,24 @@ const SET_COMPLETIONS: [&str; 7] = [ pub struct Config { /// LLM model pub model: Option, - /// What sampling temperature to use, between 0 and 2 + /// GPT temperature, between 0 and 2 #[serde(rename(serialize = "temperature", deserialize = "temperature"))] pub default_temperature: Option, - /// Whether to persistently save non-session chat messages + /// Whether to save the message pub save: bool, /// Whether to disable highlight pub highlight: bool, /// Used only for debugging pub dry_run: bool, - /// If set true, use light theme + /// Whether to use a light theme pub light_theme: bool, - /// Specify the text-wrapping mode (no*, auto, ) + /// Specify the text-wrapping mode (*no*, auto, ) pub wrap: Option, /// Whether wrap code block pub wrap_code: bool, /// Automatically copy the last output to the clipboard pub auto_copy: bool, - /// REPL keybindings, possible values: emacs (default), vi + /// REPL keybindings. values: emacs, vi pub keybindings: Keybindings, /// Setup AIs pub clients: Vec, @@ -741,6 +741,9 @@ fn create_config_file(config_path: &Path) -> Result<()> { let perms = std::fs::Permissions::from_mode(0o600); std::fs::set_permissions(config_path, perms)?; } + + println!("✨ Saved config file to {}\n", config_path.display()); + Ok(()) } -- cgit v1.2.3