script-ide icon indicating copy to clipboard operation
script-ide copied to clipboard

Added suffix and path filters for quickopen

Open revaraver opened this issue 3 months ago • 0 comments

Hello, I’ve become completely reliant on this plugin during my time using Godot.

The reason for this PR is that I foolishly added over 30,000 png and svg assets into my assets folder. As a result, whenever I use Quick Open, unless I select a filter for scenes or GDScript files, every single keystroke causes a delay of two to three seconds — which is quite painful.

To solve this, I added a filtering feature that allows users to exclude certain file extensions or directory paths. Users can configure this in res://addons/script-ide/quickopen/filter_config.tres. By default, the .import suffix and .godot directory are included as examples for users to follow, even though Godot already filters them out at the engine level. image

I also added two switches to enable or disable these filters.

All of the changes take effect immediately — there’s no need to restart the plugin or the engine.

These improvements make a noticeable difference when dealing with tens of thousands of assets files, though I fully admit that adding so many files to a game project is quite a foolish thing to do.

Here are a few example screenshots:

Default state image

Filtered out the “素材 (assets)” path image

Filtered out .md extension image

Filters kept but switches turned off image

revaraver avatar Oct 18 '25 21:10 revaraver