diff options
| author | sigoden <sigoden@gmail.com> | 2023-11-02 16:08:11 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-02 16:08:11 +0800 |
| commit | eff69a482d55d182448ff191203f05efc2878d4c (patch) | |
| tree | 71c6b261809c5a707fe144ac437f8b3ab6f8c249 /src/config | |
| parent | 713c92bdde5435149842b33a55a45f7375c53b60 (diff) | |
| download | aichat-eff69a482d55d182448ff191203f05efc2878d4c.tar.gz | |
feat: add `.set auto_copy` (#200)
Diffstat (limited to 'src/config')
| -rw-r--r-- | src/config/mod.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs index da197b9..1b00832 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -404,6 +404,7 @@ impl Config { format!("save {}", !self.save), format!("highlight {}", !self.highlight), format!("dry_run {}", !self.dry_run), + format!("auto_copy {}", !self.auto_copy), ] } _ => vec![], @@ -446,6 +447,10 @@ impl Config { let value = value.parse().with_context(|| "Invalid value")?; self.dry_run = value; } + "auto_copy" => { + let value = value.parse().with_context(|| "Invalid value")?; + self.auto_copy = value; + } _ => bail!("Unknown key `{key}`"), } Ok(()) |
