ComfyUI Node

SLP List View

The list picker that keeps every option visible

By hetima·Created 7 months ago·Updated 6 months ago· 5
SLP List View
    • selection
    text

    If you switch LoRAs by reopening a combo box and hunting through a dropdown every single run, you know exactly why this node exists. SLP List View turns a chunk of multi-line text into a big clickable menu. Every candidate is visible at once, one click swaps the output, and because the output is a plain string (typed as *, so it plugs into almost any input) the same trick works for prompts, negative prompts, filename pieces, or any combo-box input you're tired of drilling into.

    This is the flagship of the hetima/ComfyUI-SingleLinePicker pack, and its creator says as much in the r/comfyui thread where it launched: he wanted to switch between LoRAs for continuous generation in a single click, and this is what he built. All candidates visible, one click to pick - that's the whole pitch, and it holds up.

    How it works

    The node is a custom frontend widget. Feed it text through the optional text input (a multi-line STRING), and the JavaScript renders each line as its own row inside the node. Click a row and the selected line is pushed back to the backend as selected_text; on execution the node returns it as the selection output. Since the output type is * (any), you can wire it straight into a combo box's input - the README explicitly calls this out - or into lora_name_text on the pack's SLP Lora Loader for the classic one-click LoRA switcher.

    Two formatting modes make long lists readable, both enabled by putting a directive on the first line:

    • #dict - display text: output text per line, so a huge prompt can hide behind a short label.
    • #section - [display] followed by a multi-line body, so one visible title can output several lines of prompt.

    The context menu adds two time-savers. Get Lora List hits ComfyUI's /models/loras endpoint and loads every installed LoRA into the list - pair that with the SLP Lora Loader and you have a browser that stays in sync with your loras folder. Upload File... loads .csv, .tsv, or .txt from disk, treating the first two columns as display text / output text.

    The one gotcha that trips everyone

    The selection state resets on the first execution, or any time the text content changes - and at that moment the node outputs an empty string. The README is upfront about it: after a reset, click your line again before running, and if the content is static it's fine to disconnect the text input once the list has loaded. There's also a partial-execution trick: run the picker on its own (via the toolbox menu when the node is selected) so text flows in without re-running the whole graph. This "nothing outputs until you click" behavior is why beginners see a blank where their LoRA should be - it's not broken, it's waiting.

    Install

    From ComfyUI Manager, search ComfyUI-SingleLinePicker, or clone it by hand:

    cd ComfyUI/custom_nodes
    git clone https://github.com/hetima/ComfyUI-SingleLinePicker
    

    Then restart ComfyUI. There's no requirements.txt and the pyproject declares zero dependencies, so nothing else to install - refreshingly rare in this ecosystem.

    One warning from the README: Nodes 2.0 is not supported yet. If you've switched on ComfyUI's new frontend, the pack's custom widgets won't behave; keep Nodes 2.0 off, which is still the standing advice for most third-party packs anyway.

    CategorySingleLinePicker

    Inputs (1)

    NameTypeDefaultDescription
    textoptSTRINGtext content for list

    Outputs (1)

    NameTypeDescription
    selection*text content of selected line