Quickly sift through search results (node red palette)

Not sure if this is a feature request, or if someone can tell me I'm doing it wrong :slight_smile:

The problem:
When I search for something in palette, then I click on one of the many results, it takes me to that result and closes the search box.

On paper, that sounds perfectly reasonable.

But in reality I use search a LOT now and I'd like to be able to quickly click through each result, bearing in mind that each time I click a result it teleports me right to location within the tab (flow), which helps me see very quickly if that's the result I was looking for.

The issue is that, the way I want to find nodes, I not only have to bring up the search box, type the search term, click the first result, realise that's not it, then also have to do the whole lot again (as it doesn't even pre-populate the search box with the previous search) - but also I have to count down the list of the item I clicked (e.g. try the first result first, try the second result second.... remember to try the 7th result on the 7th time you do this...)

Is there a more effective way to search through 5-10 results quickly?

I really like being teleported to the location of the thing you are searching for, although I would love for the little highlight animation to be less subtle as it's often impossible to see the node that is flashing for the short duration after you click on the search result.

Basically I'm quite a visual person and as soon as I see the node, in the context of where I put it, I know immediately whether or not it's the one I'm looking for.

Is there a way to achieve that?

Ideas:

  1. Wouldn't it be nice to implement a kind of "hover" function, so when you hover over one result, it switches to the correct flow / location and highlights the node? That way you could move your mouse around each result and just see immediately. (Potential problem: the search box might obscure the view of the node it found.)

  2. What about just keeping the search box open until it's explicitly closed? It could make quick searches a bit slower, as it adds an extra mouse click to close the search box. Also same potential problem as above: the search box may obscure the highlighted node.

  3. A sidebar search - now we are talking...

2 Likes

As a first remedy maybe: give your nodes names

Ahh - I almost pre-empted this answer when writing my initial post :slight_smile:

Yes you are right, it's sensible to name nodes carefully. But I bet if you looked, you'd find a lot of nodes named the same thing. It's almost inevitable when you've a very high number of flows and nodes. Also my recall of words is not nearly as good as my recall of the visual context shown within palette.

In never versions of node-red, pressing the f key will take you to the next search item. Pressing shift plus f will take you to the previous search item. There is also the plus and minus buttons either side of the spyglass icon button in a footer toolbar at the bottom of the workspace that displays "1 of 7" etc

2 Likes

This is what i use to continously search like @Steve-Mcl suggested above.
find

1 Like

I had no idea about the next/previous buttons!

But: If I search for "template" it gives me 60 results to step through, including

  • tabs and groups with "template" in the description,
  • comments with "template" in the contents,
  • all template nodes even if renamed,
  • all node-red-dashboard and @flowfuse/node-red-dashboard templates.

Maybe an option in the search dialog to filter results by "flow file object type" and by exact name only would be useful?

Enter type:template in the search. Also check other options in the drop down to the right of the search input. You can also do compound search like type:template is:modified test Which means find template nodes that have been modified and have the name test in it.

Super - this was the exact answer I was hoping for! i.e. "you missed it - it's already there!"

1 Like

Tips in the info tab is where I get many good stuff to learn.

1 Like