getcursor / cursor

The AI Code Editor
https://cursor.com
23.65k stars 1.49k forks source link

Supporting directly copying AI's chat response. #729

Open yangwenbo99 opened 1 year ago

yangwenbo99 commented 1 year ago

Problem statement I am dealing with a documentation project that operates on Markdown files. When I ask the AI to manipulate markdown contents in chat, the answers given are parsed and rendered by the editor. Hence, all markdown formatting is lost.

Potential solution Add a button on the top panel, such that we can directly view and copy the AI's raw (unparsed, unrendered markdown) response.

StefanIgnjatovic12 commented 11 months ago

Would be great if this could be implemented. Right now it's a pain to copy entire responses that include code blocks unless I'm missing how to do it easily.

odubinkin commented 10 months ago

As a workaround, you can ask chatgpt to wrap all the answer to "code" tag. In this case you will see raw markdown and will be able to copy it. You can even add this instruction as prompt.

dumpl1n commented 8 months ago

has anyone figured out a workaround?

AppliedEllipsis commented 1 week ago

I have done this trick before when asking for a formatted md documentation and it broke the answer up. I'm sure there are better tricks out there, but I was in a pinch for a quick solution.

After getting the response, paste this, then copy the js it generates to a new file with a html extension, then run the html file and click the button.

Use gpt-4o-mini for this, use w/e model you want for the previous. write a javascript console command to put the previous response in clipboard when you click a button on the top of the webpage

It ended up writing an entire html doc for it instead of a console command, but it hit my need at the time.