CoachBate Numbered Text
Multiline text that counts its own lines
- text
Here's a small quality-of-life node that punches above its weight in one specific situation. CoachBate Numbered Text is a multiline text box with a line-number gutter - one number per non-blank line - that passes the full text through as a plain STRING. In isolation that sounds like a glorified note node, and it sort of is. But pair it with the pack's Batch Prompter and the numbering stops being cosmetic.
How it works
You type multiline text; the node's UI displays each non-blank line with a running number in the gutter; the output text (STRING) is the entire block, exactly as entered. Blank lines get no number. That "blank lines don't count" detail is the whole point: it's the same counting rule the Batch Prompter's starting_number uses, so "line 7" in this node's gutter is precisely "prompt number 7" in the Batch Prompter. The two nodes were clearly built to be read against each other - use Numbered Text to author and eyeball a prompt list, then feed the same text into the Batch Prompter's multiline_text and jump straight to the line you care about.
Inputs and output
multiline_text- the text. One input, that's it.text(STRING) - the full multiline text passed through untouched.
The pass-through is faithful: it's not a list splitter or a formatter. Whatever you type is what comes out. If you need per-line iteration, that's the Batch Prompter's job; this node is the legible editor for the source material.
When to reach for it
Keep a numbered prompt list in your workflow where you can see it - before a batch prompter, or just as a reference block alongside a Shot Loader. If you're the kind of person who keeps 30 prompt variants in a text file, this puts them in the graph with numbers you can actually refer to ("use prompt 12, not 13"). When you're not using it that way, it's still a decent text source node: text feeds any STRING input.
Common issues
- "The numbers don't match my file's line numbers" - if your file has blank lines, its numbers are off by the count. The gutter numbers non-blank lines only, deliberately.
- Nothing to troubleshoot, really - it's a textarea and a wire. About the only failure mode is expecting it to split or iterate lines, which it explicitly doesn't do.
Installation
Install via ComfyUI Manager (search "CoachBate") or:
cd ComfyUI/custom_nodes
git clone https://github.com/CoachBate/ComfyUI-CoachBate.git
Restart ComfyUI; it appears under CoachBate in Add Node. No dependencies, no downloads. Like the rest of the pack it's alpha-stage personal tooling - but for this one, "alpha" is barely a risk.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| multiline_text | STRING | Multiline text input. Each non-blank line is numbered in the gutter. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| text | STRING | — |