ComfyUI_frontend icon indicating copy to clipboard operation
ComfyUI_frontend copied to clipboard

[Feature Request]: sort node searchbox results by user's own frequence of use or most specialized type first

Open geroldmeisinger opened this issue 8 months ago • 3 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues and checked the recent builds/commits

What would your feature do ?

I just found out that the frequency number in the searchbox is statically derived from this file https://github.com/Comfy-Org/ComfyUI_frontend/blob/main/public/assets/sorted-custom-node-map.json ("Thanks to OpenArt (https://openart.ai) for providing the sorted-custom-node-map data, captured in September 2024.").

I always assumed it's the frequency of my own usage. Everytime I add a node: 1 usage.

I also would argue, when dragging out a input node of type int, the most likely node I want to connect is a simple integer node, or something which solely uses integers, but not something that has just one int under a mixture of other types. Thus the searchbox results should be sorted by most specialized type first:

  1. if all variables are of the same type, order by least number of variables
  2. if the variables are of mixed types, order by ratio

some examples: Image

Image

Image

Image

Image

ImpactInt: int => 1 Get Image Size: int, int, int => 3 Image Resize: image, int, int => 2 / 3 Math Expression: int, float => 1 / 2 Logic Boolean: bool, number, int, float => 1 / 4 Load Video: image, int, audio, info => 1 / 4

Proposed workflow

  1. Go to ....
  2. Press ....
  3. ...

Additional information

No response

┆Issue is synchronized with this Notion page by Unito

geroldmeisinger avatar Mar 23 '25 14:03 geroldmeisinger