godot-proposals icon indicating copy to clipboard operation
godot-proposals copied to clipboard

Make CTRL + clicking a property value in the Inspector dock focus it in the FileSystem dock (if the property is an external resource)

Open npinsker opened this issue 1 year ago • 4 comments

Describe the project you are working on

Various games

Describe the problem or limitation you are having in your project

I'm often looking at a texture, Resource, etc. in the Inspector window, and want to quickly access that thing in the FileSystem window. For example, when I want to change the texture of a sprite to another sprite, the two are often in the same directory. I do this easily 10+ times per day.

In Unity, left-clicking fields like this will surface them in the Project window. I use this feature a lot. In Godot, a similar thing is possible since #70920 via right-click -> "Show in FileSystem", but is somewhat more cumbersome.

For me at least, this is by far the most common operation from its menu, much more so than any of the other options. It would be helpful to bind a shortcut to quick-show in FileSystem, e.g. CTRL + click. Open to other possible solutions (e.g. right-click to open the context menu and then press a hotkey to select the 'Open in FileSystem' option).

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

Middle-clicking on a Texture, Resource, Script, etc. will open it in the FileSystem window, if applicable. This will save 2-3 seconds per instance

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

see above

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

I think it will be used often

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

It is useful across every project

npinsker avatar Sep 03 '24 03:09 npinsker

I suggest Ctrl+Leftclick[^1] as the shortcut, so it is consistent with how you jump to definition/documentation in the Script Editor.

Middleclick in my head should open the resource in a new window / tab, which obviously isn't a thing yet, but might later be with #7459

What do you think?

[^1]: Note: I don't know if this shortcut already does anything currently!

RedMser avatar Sep 07 '24 10:09 RedMser

Sure, that's a great place to put it. Right now it does nothing (is treated as a normal left-click).

npinsker avatar Sep 07 '24 10:09 npinsker

Ctrl is also a better idea for those who have trouble triggering middle click (e.g. on touchpads)

Zireael07 avatar Sep 07 '24 11:09 Zireael07

Ctrl is also a better idea for those who have trouble triggering middle click (e.g. on touchpads)

We can make it accessible using both Ctrl + Left click and Middle click, similar to how you can open links in a new tab in web browsers.

Middleclick in my head should open the resource in a new window / tab, which obviously isn't a thing yet, but might later be with https://github.com/godotengine/godot-proposals/issues/7459

For reference, web browsers also allow opening links in a new window using Shift + Left click. Holding Shift when opening in a new tab (i.e. Ctrl + Shift + Left click or Shift + Middle click) selects the newly opened tab immediately.

Calinou avatar Sep 18 '24 15:09 Calinou

Dang I was just going to suggest CTRL + LEFT CLICK on a resource to open up all options similar to how it works with file system and node hierarchy

This gets old, it saves for the time using, but will usually revert back to all folds:

https://github.com/user-attachments/assets/61458143-d432-4a28-81f2-6eba485db7e3

bazsupport avatar Sep 30 '25 20:09 bazsupport