1.7 KiB
1.7 KiB
name, description
| name | description |
|---|---|
| omp-keybinding-inspection | Find what a key chord does in omp: doc table, live bundle defaultKeys inspection, modifier names, remap file |
Answer "what does chord X do in omp" with evidence from docs + installed bundle, not memory.
Steps
- Read
omp://keybindings.md— common action IDs and defaults (Ctrl+Rhistory search,Alt+R/F5retry,Alt+Aagent hub, ...). Docs are not a complete inventory. - Locate the install:
readlink -f $(which omp)→ usually~/.bun/install/global/node_modules/@oh-my-pi/pi-coding-agent/dist/cli.js(bundled). - Extract live default chords from the bundle (authoritative for installed version):
Contextual duplicates exist: same chord can map to different actions in different views (e.g.
cd <dist dir> && grep -o '"app[^"]*":{defaultKeys:[^}]*' cli.jsctrl+r=app.history.searchin composer,app.session.renamein resume picker). - Modifier names:
pi-tui/dist/types/keys.d.ts→ModifierName = "ctrl" | "shift" | "alt" | "super". "mod"/Super binds assuper+; only shipped super chords aresuper+alt+backspace|delete|d. Most Linux terminals swallow plain Super chords (needs kitty keyboard protocol / CSI u: kitty, foot forward them). - Remaps live in
~/.omp/agent/keybindings.yml(NOT config.yml):action.id: chordor array;[]disables. Profile-aware: default-profile file loads first, active profile overrides per action. - In-session live reference:
/hotkeys.
Pitfalls
grep pi-tui/dist/*.jsfails (no top-level js; types only underdist/types/).- Chord notation is case-insensitive, UI-style (
Ctrl+P,Alt+Shift+P). - Old unqualified action names auto-migrate; new configs use namespaced ids (
app.*,tui.editor.*).