Skip to content

Instantly share code, notes, and snippets.

@Bhu1-V
Last active April 3, 2023 21:36
Show Gist options
  • Save Bhu1-V/1602afac66cb7cc8a5835231e9da0968 to your computer and use it in GitHub Desktop.
Save Bhu1-V/1602afac66cb7cc8a5835231e9da0968 to your computer and use it in GitHub Desktop.
Google Summer of Code 2021 Final Work Submission

Google Summer of Code 2021 Final Work Submission

Command Palette.

Description

This Project adds a command palette to Godot Engine. which helps users to search for available commands and execute those easily through a simple interface that can be opened through a shortcut and a menu Item.

The project had three main goals which have been reached successfully

1. Make a compact and understandable UI

Command Palette consists of a Line Edit to search, Tree to display retrieved commands which are divided into respective categories or contexts and also each Tree Item shows the shortcut of the command if it's available.

2. Add Editor Commands

Added many relevant commands to the palette which are hidden as a menu option.

3. Add Plug-in Support

Command Palette is exposed for external Godot Plugins to add their custom commands.

Code contribution

Related to this Project.

Implemented Features

  • Shortcut to open Command Palette
  • search commands
  • execute commands
  • show shortcuts of the commands if it's available
  • divide commands based on their context.
  • plug-in support.

What are not implemented.

  • Merging Quick-Open into Command Palette.
  • Showing only commands that are available in the current context or executing commands of differnet contexts.

Results

demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment