Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save code folding state for closed scripts #633

Closed
djrain opened this issue Mar 25, 2020 · 2 comments
Closed

Save code folding state for closed scripts #633

djrain opened this issue Mar 25, 2020 · 2 comments

Comments

@djrain
Copy link

djrain commented Mar 25, 2020

Describe the project you are working on:

A project using GDScript.

Describe the problem or limitation you are having in your project:

When I close a script, I would hope for the code folding state to be saved and restored the next time I open it. But when I reopen a script, all code is unfolded.

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

Save the code folding state of the script so it restores exactly how I left it.

Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams:

Nothing more to say really. There can be an option to toggle this behavior, but it should be enabled by default IMO.

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

Nope. Workaround is to keep all scripts open, but that's cluttery and bad for editor performance.

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

I think most people who use code folding would appreciate this option. Probably needs to be core anyway.

@Ramh5
Copy link

Ramh5 commented Apr 18, 2020

I think this would be a great quality of life feature.

@Paulb23
Copy link
Member

Paulb23 commented Sep 4, 2021

Going to close this in favour of #37 as it's the same root issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants