Maran23 / script-ide

Script-IDE is a plugin for Godot. It transforms the Script UI into an IDE like UI. Tabs are used for navigating between scripts. The default Outline got an overhaul and now shows all members of the script (not just methods) with unique icons for faster navigation.
MIT License
365 stars 16 forks source link

Add optional hide folder names setting #33

Closed natalie-csky closed 10 months ago

natalie-csky commented 10 months ago

Hi again, I added a setting so that you can hide the folder names shown in tabs. E.g. "script-ide/plugin.gd" would become "plugin.gd" This nets you quite a lot of real estate when you have long folder names and don't have a need for them being displayed.

I did some guesswork on how your new editor settings code works, but I think what I did works fine. It should correctly display in the script-ide editor settings tab and checking/unchecking the new hide_folder_names setting should be immediately reflected in the editor.

natalie-csky commented 10 months ago

Also, I don't know why there are so many empty lines that count as modified ¯_(ツ)_/¯

Maran23 commented 10 months ago

You probably have turned on this editor setting? image

I actually didn't know that this settting exists. Will probably enable it as well.


Regarding your PR: Isn't this already an editor setting? I found this one: image

For me, paths are only shown when I have multiple tabs with the same name: image and: image

natalie-csky commented 10 months ago

Yea, you are right, I didn't know that setting existed. And it was set to Parent Directory and Name for me, so it always was showing the folder names. Thank you for telling me, will close the PR.