From 3c848b4dedafa434b9e632abd36b3bd760353907 Mon Sep 17 00:00:00 2001 From: lencx Date: Sun, 15 Jan 2023 02:12:29 +0800 Subject: [PATCH] chore: export --- README.md | 2 +- UPDATE_LOG.md | 9 +++++++++ src-tauri/src/app/menu.rs | 2 ++ src-tauri/src/conf.rs | 1 + 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c4f770e..c1644e5 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ You can look at **[awesome-chatgpt-prompts](https://github.com/f/awesome-chatgpt ## ✨ Features - Multi-platform: `macOS` `Linux` `Windows` -- Export ChatGPT history (PNG, PDF and Share Link) +- Export ChatGPT history (PNG, PDF and Markdown) - Automatic application upgrade notification - Common shortcut keys - System tray hover window diff --git a/UPDATE_LOG.md b/UPDATE_LOG.md index e8e588c..b40ac36 100644 --- a/UPDATE_LOG.md +++ b/UPDATE_LOG.md @@ -1,5 +1,14 @@ # UPDATE LOG +## v0.9.0 + +fix: +- export button does not work + +feat: +- add an export markdown button +- `Control Center` adds `Notes` and `Download` menus for managing exported chat files (Markdown, PNG, PDF). `Notes` supports markdown previews. + ## v0.8.1 fix: diff --git a/src-tauri/src/app/menu.rs b/src-tauri/src/app/menu.rs index bdcabde..1a0faf7 100644 --- a/src-tauri/src/app/menu.rs +++ b/src-tauri/src/app/menu.rs @@ -148,6 +148,7 @@ pub fn init() -> Menu { CustomMenuItem::new("awesome".to_string(), "Awesome ChatGPT") .accelerator("CmdOrCtrl+Shift+A") .into(), + CustomMenuItem::new("buy_coffee".to_string(), "Buy lencx a coffee").into(), ]), ); @@ -249,6 +250,7 @@ pub fn menu_handler(event: WindowMenuEvent) { "go_conf" => utils::open_file(utils::chat_root()), "clear_conf" => utils::clear_conf(&app), "awesome" => open(&app, conf::AWESOME_URL.to_string()), + "buy_coffee" => open(&app, conf::BUY_COFFEE.to_string()), "popup_search" => { let chat_conf = conf::ChatConfJson::get_chat_conf(); let popup_search = !chat_conf.popup_search; diff --git a/src-tauri/src/conf.rs b/src-tauri/src/conf.rs index 21a204c..559933b 100644 --- a/src-tauri/src/conf.rs +++ b/src-tauri/src/conf.rs @@ -14,6 +14,7 @@ use tauri::TitleBarStyle; pub const ISSUES_URL: &str = "https://github.com/lencx/ChatGPT/issues"; pub const UPDATE_LOG_URL: &str = "https://github.com/lencx/ChatGPT/blob/main/UPDATE_LOG.md"; pub const AWESOME_URL: &str = "https://github.com/lencx/ChatGPT/blob/main/AWESOME.md"; +pub const BUY_COFFEE: &str = "https://www.buymeacoffee.com/lencx"; pub const GITHUB_PROMPTS_CSV_URL: &str = "https://raw.githubusercontent.com/f/awesome-chatgpt-prompts/main/prompts.csv"; pub const DEFAULT_CHAT_CONF: &str = r#"{