Is your feature request related to a problem? Please describe.
Add ability to save conversation content to a file for future reference.
Describe the solution you'd like
User should be able to invoke /save command to save the conversation to a default location. Optionally users should be able to provide an alternative location and or filename.
Describe alternatives you've considered
A CLI option, however not always user is aware that the conversation is worth saving.
Example use cases
No args
me: /save
Saved the conversation to "~/ai-chats/2024-02-22 12:15 Tell me a joke.txt".
Default name would be date, time (hour + minute), then couple of first words from the query. ALl properly escaped, etc.
Filename
me: /save roman-empire.txt
Saved the conversation to "~/ai-chats/roman-empire.txt".
2b. Filename name clash
me: /save roman-empire.txt
File "~/ai-chats/roman-empire.txt" already existed. Saved the conversation to "~/ai-chats/roman-empire-1.txt" instead.
Full path
me: /save ~/roman-empire.txt
Saved the conversation to "~/roman-empire.txt".
Considerations
Key params to think through (propose better values if you find any):
Default name of saved file: 2024-02-22 12:15 Tell me a joke.txt
Is your feature request related to a problem? Please describe. Add ability to save conversation content to a file for future reference.
Describe the solution you'd like User should be able to invoke
/save
command to save the conversation to a default location. Optionally users should be able to provide an alternative location and or filename.Describe alternatives you've considered A CLI option, however not always user is aware that the conversation is worth saving.
Example use cases
No args
Default name would be date, time (hour + minute), then couple of first words from the query. ALl properly escaped, etc.
Filename
2b. Filename name clash
Considerations Key params to think through (propose better values if you find any):
2024-02-22 12:15 Tell me a joke.txt
~/ai-chats