From cf03952c7bd44a3ad94a675b846cdfafb2af1c75 Mon Sep 17 00:00:00 2001 From: shane s Date: Thu, 4 May 2023 09:22:12 -0400 Subject: feat: add `config.auto_copy` (#102) * added config option to copy all ChatGPT output to clipboard * formatted with * updates --------- Co-authored-by: sigoden --- src/repl/handler.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/repl') diff --git a/src/repl/handler.rs b/src/repl/handler.rs index 8d51439..c38f607 100644 --- a/src/repl/handler.rs +++ b/src/repl/handler.rs @@ -64,6 +64,7 @@ impl ReplCmdHandler { wg.wait(); let buffer = ret?; self.config.read().save_message(&input, &buffer)?; + let _ = self.config.read().copy_message(&buffer); self.config.write().save_conversation(&input, &buffer)?; *self.reply.borrow_mut() = buffer; } -- cgit v1.2.3