Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

ImGui Command Palette

ImGui Command Palette: a command palette, as in Sublime Text or VS Code: the user types to find and run the app’s commands.

Create a Context, register commands with add_command(), and show the palette with command_palette_window().

Upstream repository · The book’s page

Modules

In imgui_bundle (from imgui_bundle import imgui_command_palette):

Demos using it

The demos of the catalog that use it (the pictures link to their code and to the playground).

Command palette

Command palette

A searchable list of commands, as in VS Code: press Ctrl+Shift+P (Cmd+Shift+P on macOS).

More

Type a few letters to filter it. One command changes the theme in two steps, another writes to the log below. Learn how to register commands and their callbacks with imgui-command-palette.

Uses: command palette

Python: ▶︎ Run · Code
C++: ▶︎ Run · Code

Knobs, toggles, spinners and more

Knobs, toggles, spinners and more

Knobs, toggle switches, spinners, a command palette, a dock-like cool bar: widgets beyond Dear ImGui’s own.

More

They come from the libraries in the bundle: imgui-knobs, imgui_toggle, imspinner, imgui-command-palette and ImCoolBar. Also file dialogs: the native ones (portable-file-dialogs), and ImFileDialog, drawn with ImGui.

Uses: knobs, toggles, spinners, cool bar, command palette, file dialogs

Python: ▶︎ Run · Code
C++: ▶︎ Run · Code