ComfyUI_frontend
ComfyUI_frontend copied to clipboard
[Feature Request]: sort node searchbox results by user's own frequence of use or most specialized type first
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:
- if all variables are of the same type, order by least number of variables
- if the variables are of mixed types, order by ratio
some examples:
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
- Go to ....
- Press ....
- ...
Additional information
No response
┆Issue is synchronized with this Notion page by Unito