godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.42k stars 21.06k forks source link

[TRACKER] New commands to add to the editor command palette #52009

Open Bhu1-V opened 3 years ago

Bhu1-V commented 3 years ago

Godot version

master

System information

Any OS

Issue description

Godot now has a Command Palette. But only all the commands are not added to the palette.

Below are some commands that are currently in the Command Palette. Feel free to report which Commands(mostly shortcuts) you think should be added to the command palette.

Editor

Steps to reproduce

look for Editor Settings > Shortcuts that need to be added into the command palette.

Minimal reproduction project

No response

dploeger commented 3 years ago

I'd like to have a switch between the editor modes (2d/3d/script), open scene and start game and start current scene in there. Thanks!

vini-guerrero commented 3 years ago

Any chance to have a "Close All Open (Scripts/Scenes)" feature?

me2beats commented 3 years ago

As a plugin dev I'd love to have all of them in the palette list (or as much as possible) and be able to run them from a plugin.

This would be a great feature, now unfortunately most of commands cannot be called from the plugin (without some ugly workarounds).

jasonwinterpixel commented 3 years ago

Export targets could be accessible in here.

ie Export Export_Name

Open editor settings, open project settings.

mevenant commented 3 years ago

in a mono build, I’d like a command that just Builds (compiles) the code without running the game if there’s no such shortcut already. This helps me with compilation error checking when I don’t have intellisense enabled or something like that.

That’d be fantastic. Thank you!

Calinou commented 3 years ago

Export targets could be accessible in here.

ie Export Export_Name

I don't think the current command palette implementation supports actions that are dynamically created.

in a mono build, I’d like a command that just Builds (compiles) the code without running the game if there’s no such shortcut already. This helps me with compilation error checking when I don’t have intellisense enabled or something like that.

Is this what the Build button does in the top-right corner of the editor?

mevenant commented 3 years ago

Yes. Is there a keyboard shortcut for that? Or for now is that button the only way of compiling?

Calinou commented 3 years ago

Yes. Is there a keyboard shortcut for that? Or for now is that button the only way of compiling?

According to the editor C# source code, there isn't any shortcut for the Build button yet: https://github.com/godotengine/godot/blob/e95fa21b455a5e2c512fe6e054f86df1f01e5bd3/modules/mono/editor/GodotTools/GodotTools/GodotSharpEditor.cs#L420-L427

Please open a proposal for this on the Godot proposals repository, with a suggestion for the default shortcut to use. The default shortcut shouldn't conflict with any existing shortcuts.

Edit: Proposal opened: https://github.com/godotengine/godot-proposals/issues/3197

boruok commented 3 years ago

from "editor" tab, tried to select must have shortcuts for palette

close scene
distraction free mode
open 2D editor
open 3D editor
open script editor
editor settings
export
quit
toggle fullscreen
new inherited scene 
play
play custom
play custom scene
project settings
reload saved scene
save all scenes
save scene
save scene as
stop
take screenshot
visible collision shapes
visible navigation

i'm wondering. command-palette must support checkboxes/flags, for example: visible collision shape and navigation must have visual feedback for usability.

dploeger commented 3 years ago

i'm wondering. command-palette must support checkboxes/flags, for example: visible collision shape and navigation must have visual feedback for usability.

That would be great. I know this feature from IntelliJ and it's pretty awesome.

Thinking about it, changing the theme would help for switching between dark and light mode. But there's no flags toggle currently for that, so this would expand command palette features to include select boxes as well.

That might be a too big feature set for the first version maybe.

Vivalzar commented 1 year ago

For now, the command palette contains only 2 entries for the Script Text Editor:

Is there any reason to not have all the menus in the script editor (File, Edit, Search, ...) like in vs-code? Commands like Move Up, Upper Case, ... would be nice to have.