godotengine / godot-proposals

Godot Improvement Proposals (GIPs)
MIT License
1.08k stars 69 forks source link

Option to flatten the scene hierachy when searching scene inspector #10043

Open Arnklit opened 2 weeks ago

Arnklit commented 2 weeks ago

Describe the project you are working on

A game in production

Describe the problem or limitation you are having in your project

When searching a complicated scene tree, especially in the remote view it is difficult to get an overview of all the hits because it's always displayed in the tree and the tree is collapsed.

Searching for vbox here for example just shows the two parents that contain vboxes. image

You have to expand all the nodes to see the found nodes and it's difficult to parse due to it being at different levels in the hierachy. image

Describe the feature / enhancement and how it helps to overcome the problem or limitation

Add an option to the Scene inspector view to flatten the scene when searching.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

An option like this. image which would result in a search like this: image

If this enhancement will not be used often, can it be worked around with a few lines of script?

This would be used often

Is there a reason why this should be core and not an add-on in the asset library?

This would help with general usability and make more sense to have built in.

RedMser commented 2 weeks ago

It should probably include some way to disambiguate nodes with same names, similar to how file browser does "recent" and "favorites".

Maybe in a tooltip or as dim text after the node's name?

Otherwise, it's hard to work with the results when your nodes don't have very distinct names, as is the case in your example screenshot.

KoBeWi commented 2 weeks ago

Related: #8359