godotengine / godot-proposals

Godot Improvement Proposals (GIPs)
MIT License
1.16k stars 97 forks source link

Allow changing the external program used for .tres and .tscn #10705

Open Jowan-Spooner opened 2 months ago

Jowan-Spooner commented 2 months ago

Describe the project you are working on

A project using resources stored in the .tres format and scenes in the .tscn format.

Describe the problem or limitation you are having in your project

Sometimes it becomes necessary to open these in a text editor. This is easily possible with the Right-Click>"Open in External Program" option in the FileSystem dock.

However there is no way to configure what program is being used. It would be very nice to be able to change this as you can for other file formats like images or audios.

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

Add a setting to EditorSettings/filesystem/external_programs/ for text resources and scenes.

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?

Might be possible as an addon, but nothing I would install an addon for.

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

This is core functionality.

KoBeWi commented 2 months ago

Open in External Program uses your system's default program, so just associate a text editor with .tscn/.tres files.

Mickeon commented 1 month ago

What KoBeWi means is that, for example, if you tick the following checkbox when selecting "Open with..." on Windows... image

That's what Godot will use to open the file, as well.

Jowan-Spooner commented 1 month ago

Thanks, that makes a lot of sense. Not sure if being able to configure it from godot has a use case then. I'd be fine to close this.