CraterCrash / godot-orchestrator

Orchestrator: Unleashing Creativity with Visual Scripting
https://www.cratercrash.com/orchestrator
Apache License 2.0
981 stars 53 forks source link

Ability to reorder functions, macros, properties, signals, #792

Open Shadowblitz16 opened 2 months ago

Shadowblitz16 commented 2 months ago

Description

Can we have the ability to reorder script definitions?

Implementation ideas

I was thinking up drag and drop

Naros commented 2 months ago

It's technically doable.

My concern is that if we store the sort order as part of the Orchestration resource and two users differ on what they prefer as the desired sort order, you will end up with a lot of VCS diffs where users reorder things.

I think things like this do not belong in the resource for various reasons. Many of Godot's UI widgets store a set of cache files in the project's .godot directory, which includes maintaining the editor's layout, favorites, and recently used items in specific dialogs. So, when you delete or rename the .godot directory, all that information is lost.

The benefit of using the .godot directory with a cache for this information is that different users can have their own preferred sort order that works best for their workflow.

From your perspective @Shadowblitz16, do you believe that caching the sort order in the .godot directory would be satisfactory for your use case?

Shadowblitz16 commented 2 months ago

It's technically doable.

My concern is that if we store the sort order as part of the Orchestration resource and two users differ on what they prefer as the desired sort order, you will end up with a lot of VCS diffs where users reorder things.

I think things like this do not belong in the resource for various reasons. Many of Godot's UI widgets store a set of cache files in the project's .godot directory, which includes maintaining the editor's layout, favorites, and recently used items in specific dialogs. So, when you delete or rename the .godot directory, all that information is lost.

The benefit of using the .godot directory with a cache for this information is that different users can have their own preferred sort order that works best for their workflow.

From your perspective @Shadowblitz16, do you believe that caching the sort order in the .godot directory would be satisfactory for your use case?

Mine is just a visual (OCD) issue they don't have to serialized in that order just appear in that order for me So yes I think I am agreeing with you