godotengine / godot-proposals

Godot Improvement Proposals (GIPs)
MIT License
1.17k stars 98 forks source link

Allow double-clicking files in the FileSystem dock to rename them (similar to nodes in the Scene tree dock) #10886

Open Cheesy-Brik opened 1 month ago

Cheesy-Brik commented 1 month ago

Describe the project you are working on

Godot

Describe the problem or limitation you are having in your project

Convience

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

Currently within the node tree you can double click nodes to change their name. However this behavior is not consistent with the file tree viewer which does not let you double click to change a files name. I feel adding this same behavior to the file tree would be an intuitive convenience.

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

Same way it works within in the node tree. Double click to edit the name of a file.

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

Not that I'm aware of as this is alters a core editor window

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

It extends a feature already within the node tree to a different but similar tree like structure (the file viewer).

Meorge commented 1 month ago

From what I've seen, generally in file viewers, double-clicking a file will open the file. You usually click the file once to select it, then click it again after a more significant delay to rename it. This is so common in GUIs that I feel it'd be more jarring to change this behavior just for Godot's FileSystem tab. If anything, I think it'd make more sense to do the opposite change - have double-clicking a node not open its name editor. That being said, I can't think of what a double-click on a node would intuitively do (since single-clicking it already focuses it).

Calinou commented 1 month ago

That being said, I can't think of what a double-click on a node would intuitively do (since single-clicking it already focuses it).

Double-clicking on a node could make the camera focus to it, similar to pressing F after selecting it.