You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+37-13Lines changed: 37 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,8 @@ Also see [this](https://forum.cursor.com/t/guide-5-steps-exporting-chats-prompts
8
8
9
9
## Features
10
10
11
-
-**Discover Chats**: Discover all `state.vscdb` files in a directory and print a few lines of dialogue so one can identify which is the workspace (chat) one is searching for. It's also possible to filter by text.
12
-
-**Export Chats**: Export chats data for a certain workspace to Markdown files or print it to the command line.
11
+
-**Discover Chats**: Discover all chats from all workspaces and print a few lines of dialogue so one can identify which is the workspace (or chat) one is searching for. It's also possible to filter by text.
12
+
-**Export Chats**: Export chats for the most recent (or a specific) workspace to Markdown files or print it to the command line.
13
13
14
14
## Installation
15
15
@@ -26,20 +26,44 @@ Also see [this](https://forum.cursor.com/t/guide-5-steps-exporting-chats-prompts
26
26
27
27
## Usage
28
28
29
-
Find, where the `state.vscdb`is located in your computer. The table below may help:
29
+
First, find, where the `state.vscdb`files are located on your computer. Confirm that corresponding to your system, the right path is setin the [config.yml](./config.yml) file. Update it if not set correctly.
directory: str=typer.Argument(None, help="The directory to search for state.vscdb files. If not provided, the default Cursor workspace storage directory will be used."),
139
+
limit: int=typer.Option(None, help="The maximum number of state.vscdb files to process. Defaults to 10 if search_text is not provided, else -1."),
140
+
search_text: str=typer.Option(None, help="The text to search for in the chat history.")
141
+
):
75
142
"""
76
143
Discover all state.vscdb files in a directory and its subdirectories, and print a few lines of dialogue.
77
-
78
-
Args:
79
-
directory (str): The directory to search for state.vscdb files.
80
-
limit (int): The maximum number of state.vscdb files to process, sorted by most recent edits. Defaults to 10 if search_text is not provided, else -1.
81
-
search_text (str): The text to search for in the chat history. If provided, only chat entries containing this text will be printed.
0 commit comments