omp packages

omp-command-palette0.1.0

Searchable command palette overlay for Oh My Pi

danbarua Published 1 month ago MIT ~16 downloads/mo

Built for omp

The author tagged this package oh-my-pi.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

omp-command-palette

Searchable command palette for Oh My Pi. Open it while the editor still has draft text.

Inspired by the Pi community palettes (pi-command-palette, @d3ara1n/pi-command-palette), written against OMP's extension API instead of forked from them.

┌──────────────────────────────────────────────────────┐
│ Command Palette                                      │
├──────────────────────────────────────────────────────┤
│ → Switch Model          Pick an authenticated model  │
│   Set Thinking Level    Change reasoning effort      │
│   New Session           Start a fresh session        │
│   Compact Session       Compact conversation now     │
│   Settings              Open the settings menu       │
│   /review               Review the diff              │
└──────────────────────────────────────────────────────┘

Install

From this checkout:

omp plugin link /Users/dan/code/agents/omp-command-palette

Or load once:

omp --extension /Users/dan/code/agents/omp-command-palette

Then /reload-plugins or restart the session.

Usage

Binding Action
Ctrl+Shift+K Open palette (default; remappable)
/palette Open palette (always registered)

Type to filter. Enter selects. Esc closes, or goes back from a submenu.

Ctrl+P and Ctrl+Shift+P stay with OMP's model cycle. This package will not steal them.

What it can do

Runs immediately

  • Switch model (current model starred)
  • Set thinking level
  • Compact
  • Toggle a tool on or off
  • Copy / clear / restore editor text
  • New session and reload, when opened via /palette

Fills the editor (press Enter to run the built-in)

  • Settings, marketplace, plugins, hotkeys, extensions, agent hub
  • Plan mode, session tree, fork, resume, MCP, setup, collab, advisor, debug
  • Every extension command, skill command, and prompt template from pi.getCommands()

Draft text is saved before a fill or clear. Restore Editor Text appears at the top until you use it.

Config

Optional file: ~/.omp/agent/omp-command-palette.json

Project override: <cwd>/.omp/omp-command-palette.json

{
  "shortcut": "ctrl+shift+k",
  "enabled": true
}

Priority: OMP_COMMAND_PALETTE_KEY → project file → user file → ctrl+shift+k.

Set enabled to false to keep /palette and drop the chord. Reserved OMP shortcuts (ctrl+p, ctrl+shift+p, …) are ignored.

Develop

bun test

The overlay uses OMP's public SelectList filter and ctx.ui.custom({ overlay: true, overlayOptions }). It does not poke private TUI fields.