chatlog icon indicating copy to clipboard operation
chatlog copied to clipboard

feat: Add chat export functionality

Open zhaojiyuan6 opened this issue 11 months ago • 0 comments

This commit introduces a new feature allowing you to export chat records.

Key changes:

  • Added an "Export Chat Records" option to the main menu.
  • Implemented a multi-level submenu for selecting a chat and then choosing an export period (today or last 7 days).
  • Chat messages are fetched from the database for the specified talker and date range.
  • The messages are formatted and saved as a .txt file in a 'chatlog_exports' directory within your home directory.
  • Filenames are generated based on the talker's display name and the export date range, with sanitization for invalid characters.
  • You will receive on-screen notifications about the outcome of the export process, including the path to the saved file on success, or error messages if issues occur.

zhaojiyuan6 avatar May 28 '25 02:05 zhaojiyuan6