You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on a myriad of side projects at the moment, and I found that it was cumbersome and cluttering to open the Godot project manager every time I wanted to open another project. Often times I will have 2-3 projects open at a time when I am copying from example code or moving a feature that was isolated in a demo project to the game I am working on that actively requires it
Describe the problem or limitation you are having in your project
I use windows explorer to navigate my project folders, when copying assets from my downloads, or copying GDScript files from one project to another and I was little annoyed that I couldn't just right click a folder and open it in Godot.
TD;LR: Can't right click on or in a folder to open it in Godot.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Add Windows RegistryEditor entries to create File Explorer context menu items for opening a project or folder in Godot.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
When a user right clicks on or in a folder in the Windows File Explorer, a context-menu item to open the Godot project in the Godot editor will be available to them. This can be done through modifying the Windows Registry. Below are two examples
Advanced Example
Code
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\Godot]
@="Open with &Godot"
"Icon"="C:\\PATH\\TO\\godot.exe"
"ExtendedSubCommandsKey"="Directory\\ContextMenus\\Godotx64"
"MUIVerb"="&Godot"
[HKEY_CLASSES_ROOT\Directory\ContextMenus\Godotx64]
[HKEY_CLASSES_ROOT\Directory\ContextMenus\Godotx64\shell]
[HKEY_CLASSES_ROOT\Directory\ContextMenus\Godotx64\shell\edit]
"Icon"="C:\\PATH\\TO\\godot.exe"
"MUIVerb"="Edit project with Godot"
[HKEY_CLASSES_ROOT\Directory\ContextMenus\Godotx64\shell\edit\command]
@="C:\\PATH\\TO\\godot.exe -e --path \"%V\""
[HKEY_CLASSES_ROOT\Directory\ContextMenus\Godotx64\shell\run]
"Icon"="C:\\PATH\\TO\\godot.exe"
"MUIVerb"="Run project with Godot"
[HKEY_CLASSES_ROOT\Directory\ContextMenus\Godotx64\shell\run\command]
@="C:\\PATH\\TO\\godot.exe --path \"%V\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\Godot]
@="Open with &Godot"
"Icon"="C:\\PATH\\TO\\godot.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Godot\command]
@="C:\\PATH\\TO\\godot.exe -e --path \"%V\""
Result
Simple Example
Code
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\Godot]
@="Open with &Godot"
"Icon"="C:\\PATH\\TO\\godot.exe"
[HKEY_CLASSES_ROOT\Directory\shell\Godot\command]
@="C:\\PATH\\TO\\godot.exe -e --path \"%V\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\Godot]
@="Open with &Godot"
"Icon"="C:\\PATH\\TO\\godot.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Godot\command]
@="C:\\PATH\\TO\\godot.exe -e --path \"%V\""
Result
If this enhancement will not be used often, can it be worked around with a few lines of script?
This can be worked around with a simple PowerShell script that can be executed post-install via scoop, like this (will require Administrator access):
Or it can be done via C# using syntax like this, similar to the above code snippet :
RegistryKey_key=Registry.ClassesRoot.OpenSubKey("Folder\\Shell",true);RegistryKeynewkey=_key.CreateSubKey("My Menu Item");newkey.SetValue("AppliesTo","under:T:");RegistryKeysubNewkey=newkey.CreateSubKey("Command");subNewkey.SetValue("","C:\\yourApplication.exe");subNewkey.Close();newkey.Close();_key.Close();
Is there a reason why this should be core and not an add-on in the asset library?
There would be no way to make this an addon
TL;DR
N/A
The text was updated successfully, but these errors were encountered:
I find automated context menu registrations annoying, as they make an already-tall context menu even taller. I think your screenshot shows this well already 🙂
If this is done, this should only be done explicitly on user request, not by default.
This can be worked around with a simple PowerShell script that can be executed post-install via scoop, like this (will require Administrator access):
What Scoop does for vscode is install a .reg file that is linked to in its notes section. If you paste the path to the .reg file in the command prompt, it'll register a context menu for VS Code.
That said, this is a third-party issue that should be discussed on the scoop-extras repository.
Describe the project you are working on
I am working on a myriad of side projects at the moment, and I found that it was cumbersome and cluttering to open the Godot project manager every time I wanted to open another project. Often times I will have 2-3 projects open at a time when I am copying from example code or moving a feature that was isolated in a demo project to the game I am working on that actively requires it
Describe the problem or limitation you are having in your project
I use windows explorer to navigate my project folders, when copying assets from my downloads, or copying GDScript files from one project to another and I was little annoyed that I couldn't just right click a folder and open it in Godot.
TD;LR: Can't right click on or in a folder to open it in Godot.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Add Windows RegistryEditor entries to create File Explorer context menu items for opening a project or folder in Godot.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
When a user right clicks on or in a folder in the Windows File Explorer, a context-menu item to open the Godot project in the Godot editor will be available to them. This can be done through modifying the Windows Registry. Below are two examples
Advanced Example
Code
Result
Simple Example
Code
Result
If this enhancement will not be used often, can it be worked around with a few lines of script?
This can be worked around with a simple PowerShell script that can be executed post-install via scoop, like this (will require Administrator access):
Or it can be done via C# using syntax like this, similar to the above code snippet :
Is there a reason why this should be core and not an add-on in the asset library?
There would be no way to make this an addon
TL;DR
N/A
The text was updated successfully, but these errors were encountered: