Custom node to manage prompts in YAML format.
ComfyUI-PromptList is a simple prompt management node for ComfyUI that outputs prompts recorded in prompts.yaml.
日本語はこちら
If you have ComfyUI-Manager installed:
If you don't have ComfyUI-Manager installed:
git clone https://github.com/NakamuraShippo/ComfyUI-PromptList
Right-click on the workspace -> Add node -> prompt -> Prompt List to add the node.
The node has the following inputs:
selection: A list of prompts registered in prompts.yaml. Outputs the prompt for the selected item.
If the following items are filled in, the prompt from the selection will not be output, and the entered prompt will be output instead:
Prompt Name: New prompt name or name of the prompt to update
Positive Prompt: Content of the positive prompt
Negative Prompt: Content of the negative prompt
The entered prompt name and prompts will be saved in ComfyUI\user\PromptList\prompts.yaml.
If prompts.yaml is not found, an empty prompts.yaml will be automatically created.
If you change a prompt using the same Prompt Name, it will overwrite the prompt in prompts.yaml.
#prompts.yaml
prompt_name_1:
positive: Positive prompt content
negative: Negative prompt content
prompt_name_2:
positive: Another positive prompt
negative: Another negative prompt
"prompt name" cell = prompt name
Cell to the right of "positive" = positive prompt
Cell to the right of "negative" = negative prompt
Enter each of these. (The white cells in columns A and C are the input cells)
If you want to increase the number of items to register, please use autofill.
Note
Do not edit cells filled with gray.
If you make the following settings before exporting the yaml, you can save the trouble of moving files:
It's similar to a shortcut, but the crucial difference is that it can behave as if it has a real existence. Open the command prompt and execute the following command, replacing the links with the appropriate locations for your environment:
Windows
mklink Full_path_of_ComfyUI\user\PromptList\prompts.yaml Path_to_the_prompts.yaml_file_in_GoogleDrive
Mac/Linux
ln -s Path_to_the_prompts.yaml_file_in_GoogleDrive Full_path_of_ComfyUI\user\PromptList\prompts.yaml
Example
mklink E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-PromptList\prompts.yaml Y:\My Drive\ComfyUI-PromptList\prompts.yaml
For Windows, if you introduce an official app called PowerToys, you can easily set it up with a right-click. Give it a try!
The prompt list is saved in the prompts.yaml file. If you edit, add new prompts, or make changes, please press Refresh in the ComfyUI main menu to reflect the changes.
2024/09/06 1.2.0 Node input field is now multiline. Edit spreadsheet is now available.
2024/08/24 1.0.0 Initial public release as it's working for now
This project is released under the MIT License. For details, please refer to the LICENSE.txt file.
You are free to use, modify, and distribute this software for personal and commercial purposes as long as you include the original copyright notice and disclaimer.
Bug reports or feature requests are welcome through any contactable means. Pull requests are also welcome.