Skip to content

Command Palette

Eshan Roy edited this page Jun 18, 2026 · 1 revision

Command Palette

The Command Palette is a full-screen searchable command browser available in M31 Autonomous (M31A).

Overview

Source: internal/tui/commandpalette_model.go

Press Ctrl+P to open. All registered slash commands appear with fuzzy search support. The palette features a split-panel layout:

  • Left panel: Searchable command list with fuzzy matching
  • Right panel: Command details (description, usage, category)

Features

  • Fuzzy search -- Type to filter commands by name or description
  • Keyboard navigation -- Arrow keys or j/k to navigate, Enter to select
  • Category grouping -- Commands organized by category (core, workflow, AI, git, etc.)
  • Responsive layout -- Adapts to terminal width with minimum size enforcement
  • Theme integration -- Uses the active theme for consistent styling

Usage

  1. Press Ctrl+P to open the command palette
  2. Type to filter commands (fuzzy matching)
  3. Use arrow keys or j/k to navigate the list
  4. Press Enter to execute the selected command
  5. Press Esc to close the palette

Keybindings

Key Action
Ctrl+P Open command palette
Up/Down or j/k Navigate command list
Enter Execute selected command
Esc Close palette
Type Filter commands

Screen Constant

ScreenCommandPalette = 30

Source Files

File Purpose
internal/tui/commandpalette_model.go Full-screen command palette model (524 lines)
internal/tui/cmdpalette.go Legacy inline command palette overlay
internal/tui/commands/commands.go Command registry and DefaultCommands()

Clone this wiki locally