godotengine / godot-proposals

Godot Improvement Proposals (GIPs)
MIT License
1.15k stars 97 forks source link

Add search when selecting a directory in the project manager #9821

Open JekSun97 opened 4 months ago

JekSun97 commented 4 months ago

Describe the project you are working on

Any project

Describe the problem or limitation you are having in your project

I have a directory with a huge number of folders, and to find the right one, I have to search for a long time for the right folder

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

When we click the import button in the project manager, there is a field at the top for entering a path, I propose to make it so that when we enter symbols, folders that match the symbols begin to appear, and those that do not match disappear, as happens in the editor when adding a node

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

As I believe, you can use the same part of the code as when adding and searching for a node in the editor, only replacing their target with a directory

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

No

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

This should be part of the engine, it's a small but useful feature

AThousandShips commented 4 months ago

See also:

vPumpking commented 2 weeks ago

partially resolved by https://github.com/godotengine/godot/pull/88673 and https://github.com/godotengine/godot/pull/97344 provides a filter but no recursive search (which is considered as too complex and memory consuming for the project)