rubberduck-ai / rubberduck-vscode

Use AI-powered code edits, explanations, code generation, error diagnosis, and chat in Visual Studio Code with the official OpenAI API.
https://marketplace.visualstudio.com/items?itemName=Rubberduck.rubberduck-vscode
MIT License
582 stars 70 forks source link

Add Export Entire Chat To Markdown File #48

Closed lundeen-bryan closed 1 year ago

lundeen-bryan commented 1 year ago

There are a couple other VS Code Extensions that have an Export feature. In particular ChatGPT by Ali Gencay has a feature to export the entire chat to a markdown file. I find in your Extension I have to copy/paste the entire chat and often miss some formatting such as bullets, headings, etc.

Example scenario:

User asks for a list of improvements that could be made to a block of code in a bullet list format.

Current implementation.

It does create a bullet list, but when I copy and past the list, The output is without bullets.

Suggestion:

Include a button to push that would automatically create a markdown file in the current directory that includes the entire chat session in the rubberduck window. Each question starts with a H1 that says "QUESTION" and followed by the gpt answer under an H1 that says "ANSWER" so that it is easy to determine what happened. If the section is a code block, the output should be in a markdown codeblock.

nicoespeon commented 1 year ago

@all-contributors please add lundeen-bryan for ideas

allcontributors[bot] commented 1 year ago

@nicoespeon

I've put up a pull request to add @lundeen-bryan! :tada: