Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chat exports #121

Open
FrancescoCaracciolo opened this issue Jan 1, 2025 · 4 comments
Open

Chat exports #121

FrancescoCaracciolo opened this issue Jan 1, 2025 · 4 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@FrancescoCaracciolo
Copy link
Collaborator

Add ability to export a chat or every chat in friendly formats

@FrancescoCaracciolo FrancescoCaracciolo added enhancement New feature or request good first issue Good for newcomers labels Jan 1, 2025
@a-pro-r
Copy link

a-pro-r commented Jan 2, 2025

I want to contribute to this feature.

@FrancescoCaracciolo
Copy link
Collaborator Author

I want to contribute to this feature.

Thank you, I don't know if there is a standard format for exporting chats (that other programs or tools support).
I think we should add two options in the menu (where thread editing, extensions and settings are):

  • Export this chat
  • Export all chats
  • Restore chat(s)

The chats are simple python list of dict, so should be easy to export in any format.
In MainWindow (window.py) self.chat contains the current chat, while self.chats contains all the chats.

@a-pro-r
Copy link

a-pro-r commented Jan 2, 2025

  1. Would you like the users to have the option to select JSON or txt to export the chats?
  2. Could you explain "Restore all chat(s)" briefly?

@FrancescoCaracciolo
Copy link
Collaborator Author

  1. JSON
  2. Basically when you export multiple chats you export an array of chats, when you restore it, it adds every chat in the file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants