godotengine / godot-proposals

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

each scene tab remembers its own opened scripts #9040

Open simpson409 opened 7 months ago

simpson409 commented 7 months ago

Describe the project you are working on

i'm working on a bullet hell shooter, but i don't think it has anything to do with the issue.

Describe the problem or limitation you are having in your project

As i create new scripts and switch between scene tabs, to work on different prefabs, scripts keep opening and filling the left sidebar(marked in red box), it gets cluttered and ruins my focus. image

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

Each scene tab should remember their opened scripts, so that when i for example switch to the player scene, i only see scripts that i have edited while i was working on the player and when i switch to another scene i should only see the scripts that i have edited in that scene. image

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

-

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

not to my knowledge

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

It's part of the editor. i only see this as an improvement.

AThousandShips commented 7 months ago

The scripts are global, not relevant to the specific scene, this is by design

This sounds like a duplicate of:

simpson409 commented 7 months ago

i didn't find this issue before i created mine, otherwise i would've commented on it. however, that issue proposes to automatically only show relevant scripts in the sidebar.

i propose to remember the opened scripts per scene. it doesn't matter whether or not they are global scripts or relevant to the scene. this isn't so much for function, but more for workflow. if i edit the player character, i might not care what's in the enemy script, so it shouldn't clutter the sidebar, unless i choose to. i don't want this feature to auto populate or auto remove scripts from the side bar.