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
+21-8Lines changed: 21 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,14 +80,27 @@ Fetches and formats headlines from any URL. Ideal for injecting real-time contex
80
80
* **Safe:** Includes timeouts and error handling to prevent workflow freezing.
81
81
82
82
### Text Storage Nodes (Reader & Writer)
83
-
A persistent "clipboard" for ComfyUI. We have split this into two separate nodes for better clarity and workflow management.
84
-
* **Text Storage (Reader)**:
85
-
* **Simple Interface:** Just a dropdown menu to select and output your saved text.
86
-
* **Auto-Refresh:** Automatically updates the list when new text is saved via the Writer node.
87
-
* **Text Storage (Writer)**:
88
-
* **Dedicated Actions:** Supports `Add New (Auto Rename)`, `Overwrite Existing`, and `Delete`.
89
-
* **Force Input:** Accepts text input directly from other nodes (string connection).
90
-
* **Local Storage:** All data is saved safely to `text_storage.json` within the node folder.
83
+
A persistent "clipboard" for ComfyUI. These nodes allow you to save and retrieve text data across different workflows or sessions. All data is securely stored in the `text_storage/` directory within the node folder.
84
+
85
+
#### **Text Storage (Writer)**
86
+
Saves text content to a file or internal database.
87
+
* **Inputs:**
88
+
* `text_input`: The text content to save.
89
+
* `filename_prefix`: Optional prefix for categorization (e.g., `ProjectA_`).
90
+
* `save_name`: The main filename or key. Supports **Time Formatting** (e.g., `%Y-%m-%d`) and **Wildcards** (e.g., `***` for auto-incrementing 001, 002...).
91
+
* `mode`:
92
+
* **Add New (Auto Rename)**: Automatically avoids conflicts by renaming (e.g., `Log_2024-11-26_001.txt`).
93
+
* **Overwrite Existing**: Replaces content if the name exists.
94
+
* **Delete**: Removes the specified file/key.
95
+
* **`storage_format` (New!)**:
96
+
* `json`: Saves as a key inside the internal `text_storage.json` database.
97
+
* `txt`: Saves as a standalone `.txt` file for easy external editing.
98
+
99
+
#### **Text Storage (Reader)**
100
+
Retrieves saved text content.
101
+
* **Unified List:** Automatically scans and lists both JSON keys and `.txt` files from the storage folder.
102
+
* **Passthrough:** Outputs the selected text content string.
103
+
* **> Important Note:** The dropdown list is generated when the node loads. If you have just saved a NEW file using the Writer node, you must **Refresh the ComfyUI Page (F5)** to see the new file appear in the Reader's list.
0 commit comments