cursor icon indicating copy to clipboard operation
cursor copied to clipboard

For God's sake, I need to export a chat!

Open danimesq opened this issue 1 year ago • 6 comments

On the chat's very window or also on its item on the chats list: I should be able to export the whole chat, to avoid the hassle of having to copy every message from me and from the AI.

On every repo, I credit the AI and additionally keep a track of the conversation/reasoning behind the codes.

cc @truell20 @arvid220u @sualehasif

danimesq avatar Jul 18 '24 20:07 danimesq

Related issues:

  • https://github.com/getcursor/cursor/issues/1177
  • https://github.com/getcursor/cursor/issues/924

danimesq avatar Jul 18 '24 20:07 danimesq

@danimesq Until Cursor has implemented the chat export, here's a solution:

https://github.com/somogyijanos/cursor-chat-export

Disclaimer: I wrote this repo.

somogyijanos avatar Jul 23 '24 15:07 somogyijanos

@somogyijanos we thank you for dear life! This will save a Tinkaton of time!

To put it to work for the first time: just sent this PR to your repo! (I may send more to improve, as this will now be my daily driver)

danimesq avatar Jul 23 '24 21:07 danimesq

@danimesq Until Cursor has implemented the chat export, here's a solution:

https://github.com/somogyijanos/cursor-chat-export

Disclaimer: I wrote this repo.

Thank you @somogyijanos!! Very good work! I needed it badly!

jpsala avatar Jul 25 '24 22:07 jpsala

Until Cursor has implemented the chat export, here's a solution:

https://github.com/somogyijanos/cursor-chat-export

Disclaimer: I wrote this repo.

@somogyijanos what about turning it into a VSCode extension for Cursor? A statusbar button to export the current chat.

danimesq avatar Jul 26 '24 00:07 danimesq

@p610 fyi

sweepy84 avatar Jul 30 '24 05:07 sweepy84

2024-10-08 12:15:59.986 | INFO | src.vscdb:init:16 - Database path: 1bea4c0fdd9c0d6b5839f08177911000/state.vscdb 2024-10-08 12:15:59.987 | DEBUG | src.vscdb:query_aichat_data:58 - Loaded AI chat query from config.yaml 2024-10-08 12:15:59.987 | DEBUG | src.vscdb:query_to_json:29 - Executing query: SELECT value FROM ItemTable WHERE [key] IN ('workbench.panel.aichat.view.aichat.chatdata'); 2024-10-08 12:15:59.988 | SUCCESS | src.vscdb:query_to_json:38 - Query executed successfully, fetched 0 rows. 2024-10-08 12:15:59.988 | ERROR | main:export:92 - Failed to export chat data: list index out of range

What has gone wrong?

Operating System: Manjaro Linux KDE Plasma Version: 6.1.5 KDE Frameworks Version: 6.5.0 Qt Version: 6.7.2 Kernel Version: 6.10.11-2-MANJARO (64-bit) Graphics Platform: X11 Processors: 4 × Intel® Core™ i5-2500 CPU @ 3.30GHz Memory: 15.5 GiB of RAM Graphics Processor: NVIDIA GeForce GTX 650 Ti/PCIe/SSE2

griadooss avatar Oct 08 '24 04:10 griadooss

Index? yours no doubt?? Am excited to find this utility ... but really need it to work ??

griadooss avatar Oct 08 '24 04:10 griadooss

I made a Cursor Chat Browser with Cursor. Let's you browse and search your logs, and download them as md, html or pdf. Check it out: https://github.com/thomas-pedersen/cursor-chat-browser

thomas-pedersen avatar Nov 01 '24 21:11 thomas-pedersen

Inspired by a lot of the work that came before and the fact that some breaking changes to previous work were introduced with Cursor's 0.43.5 release, we made a cursor extension to do this, check it out and let us know what you think: https://marketplace.visualstudio.com/items?itemName=SpecStory.specstory-vscode

gregce avatar Dec 16 '24 21:12 gregce

I've created the Cursor Convo Export extension: using a shortcut or the command palette, it can save the entire conversation to a new window or a (timestamped) file.

using it a lot to store convos as documentation (deployment steps, related features, etc) and to start a fresh chat when one freezes (copy pasting in the chat and continue working).

EeKay avatar Jan 13 '25 09:01 EeKay

Inspired by a lot of the work that came before and the fact that some breaking changes to previous work were introduced with Cursor's 0.43.5 release, we made a cursor extension to do this, check it out and let us know what you think: https://marketplace.visualstudio.com/items?itemName=SpecStory.specstory-vscode

used it, made cursor unuseable, had to remove extension. great work though, when i have time will provide error logs... or do i need to update it to work with latest version? seems to be a work in progress for stable use ?

ps i need one that works with the latest version of cursor. i am getting no discover on current one pls see below for details thanks!!

Image

Image

Version: 0.45.9 VSCode Version: 1.96.2 Commit: cce0110ca40ceb61e76ecea08d24210123895320 Date: 2025-02-02T06:44:49.761Z

https://github.com/somogyijanos/cursor-chat-export

bolaji3009 avatar Feb 04 '25 10:02 bolaji3009

@bolaji3009 We just released 0.5.0 which you might benefit from: get.specstory.com/cursor-extension is the best install path. We have it working on 0.45.9 if you want to give it a spin and log any issues in https://github.com/specstoryai/getspecstory/issues

gregce avatar Feb 04 '25 22:02 gregce

@bolaji3009 We just released 0.5.0 which you might benefit from: get.specstory.com/cursor-extension is the best install path. We have it working on 0.45.9 if you want to give it a spin and log any issues in https://github.com/specstoryai/getspecstory/issues

--- Getting a 404 page for this address: https://github.com/getcursor/cursor/issues/get.specstory.com/cursor-extension

RuneEll avatar Feb 05 '25 10:02 RuneEll

It's just -- get.specstory.com/cursor-extension.

gregce avatar Feb 05 '25 14:02 gregce

Introducing cursor-export: Your solution to download & backup Cursor chat history!

Export all your valuable conversations to Markdown/HTML/JSON. Never lose those brilliant coding solutions again!

It's FREE and open-sourced.

https://github.com/WooodHead/cursor-export

WooodHead avatar Mar 05 '25 08:03 WooodHead

❤️ please also for windsurf now! 😃

On Wed, 5 Mar 2025 at 09:04, WooodHead @.***> wrote:

Introducing cursor-export: Your solution to download & backup Cursor chat history!

Export all your valuable conversations to Markdown/HTML/JSON. Never lose those brilliant coding solutions again!

It's FREE and open-sourced.

https://github.com/WooodHead/cursor-export

— Reply to this email directly, view it on GitHub https://github.com/getcursor/cursor/issues/1553#issuecomment-2700154339, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVXJUFYPODHC5Z5WVSFZI32S2VZNAVCNFSM6AAAAABLDMEVQWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMBQGE2TIMZTHE . You are receiving this because you are subscribed to this thread.Message ID: @.***> [image: WooodHead]WooodHead left a comment (getcursor/cursor#1553) https://github.com/getcursor/cursor/issues/1553#issuecomment-2700154339

Introducing cursor-export: Your solution to download & backup Cursor chat history!

Export all your valuable conversations to Markdown/HTML/JSON. Never lose those brilliant coding solutions again!

It's FREE and open-sourced.

https://github.com/WooodHead/cursor-export

— Reply to this email directly, view it on GitHub https://github.com/getcursor/cursor/issues/1553#issuecomment-2700154339, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVXJUFYPODHC5Z5WVSFZI32S2VZNAVCNFSM6AAAAABLDMEVQWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMBQGE2TIMZTHE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

ciekawy avatar Mar 05 '25 08:03 ciekawy

Here is the one i use!

griadooss avatar Mar 05 '25 08:03 griadooss

I've created the Cursor Convo Export extension: using a shortcut or the command palette, it can save the entire conversation to a new window or a (timestamped) file.

using it a lot to store convos as documentation (deployment steps, related features, etc) and to start a fresh chat when one freezes (copy pasting in the chat and continue working).

Besides Markdown, HTML export is also supported since the last version. Still using it daily myself.

Happy Cursor Coding 👨🏻‍💻

EeKay avatar Mar 05 '25 08:03 EeKay

I ask the agent to add a markdown file with the "entire chat" and it creates an almost identical copy/summary of the session.

export the entire chat with all 3 questions and answers into a md file under docs

Should work most times

neotheicebird avatar May 08 '25 12:05 neotheicebird

so now we have export func, i still prefer spec story, but is there anyway to export the terminal outputs with it..? windsurf allows parsing the whole chat from UI but applies dynamic loading so you cant copy more than few messages and trying to do this in cursor

It's just -- get.specstory.com/cursor-extension.

Mike-37 avatar May 17 '25 08:05 Mike-37

What about import a chat from markdown feature?

tannal avatar Jun 09 '25 03:06 tannal