Sign In

Pk Prompt Selector node for ComfyUI

Updated: Jul 17, 2026

tool

Download

1 variant available

Archive Other

pk_promptselector.zip

17.47 KB

Verified:

Type
Other
Stats

23

Reviews
Published

Jul 17, 2026

Base Model

Other

Hash
AutoV2
5DC26C1D9A
default creator card background decoration
Followers - 57

57

Likes - 3

3

Captura de tela 2026-07-16 224511.png

A custom node for ComfyUI designed to load, organize, and preview text prompts from local .txt files with support for multiline prompts and real-time dynamic previews.

Github: https://github.com/magnetowasnotright/pk_promptselector/

🚀 Features

⚡ Real-time Preview: Instant visualization of the selected prompt inside the node itself without needing to queue execution (Queue Prompt).

📄 Multiline Support: Long prompts containing line breaks are preserved intact within the same block.

🏷️ Custom Titles: Organize your prompts using the syntax Title|Prompt text.

📁 Automatic Organization: Reads all .txt files saved in the configured directory and displays them in a clean numbered list (#1|Title).

📝 .txt File Format

For this to work, you'll need to have at least a text file with your prompts in ComfyUI/user/default/prompts. Prompts must be separated strictly by the --- delimiter.

You can set a title for a prompt using the | character. If no title is provided, the first line of the block will be used as the preview title.

Example for your .txt file:

Cyberpunk City|A detailed photo of a cyberpunk city, neon signs reflecting on wet asphalt, volumetric fog, sharp focus, 8k resolution.
---
Portrait Studio|Studio photography of a portrait, dramatic lighting, 85mm lens.
---
This prompt has no explicit title, so this first line becomes the menu title.
The rest of the text remains part of the prompt.

The node automatically creates and reads .txt files located in the following path:

ComfyUI/user/default/prompts/

If the folder does not exist, it will be created automatically upon launching ComfyUI with the node installed.

💻 How to Use

  1. On the ComfyUI canvas, right-click and navigate to utils/text -> Prompt File Selector (com preview).

  2. From the prompt_option dropdown, select your desired prompt (#1|Title, #2|Title, etc.).

  3. The full prompt text will instantly appear in the Preview text box inside the node body.

  4. Connect the STRING output of the node to your CLIP Text Encode or Positive Prompt node.

⚙️ Inputs and Outputs

Inputs

• prompt_option (Dropdown): A list containing all available prompts found across the .txt files.

Outputs

• prompt (STRING): The full text string of the selected prompt.

📄 License

This project is licensed under the GNU General Public License (GPL-3.0). Feel free to modify and redistribute it under the terms of the GNU license.