Pi Keybindings Reference
Custom Extension Shortcuts
Files Extension
| Shortcut | Action | Mnemonic |
|---|---|---|
Ctrl+X |
Browse files | “X” like Emacs C-x prefix |
Alt+O |
Reveal latest file | “O” for Open/Reveal |
Alt+Q |
Quick Look latest file | “Q” for Quick look |
/files |
Browse files (command) | - |
Prompt History (cwd-history)
| Shortcut | Action |
|---|---|
Up/Down |
Navigate prompt history (auto-seeded from sessions) |
Emacs-Style Navigation (keybindings.json)
Cursor Movement
Ctrl+P/Ctrl+N- Up / DownCtrl+B/Ctrl+F- Left / RightAlt+B/Alt+F- Word left / right
Editing
Ctrl+D- Delete forwardCtrl+H- Delete backwardCtrl+J- New line
Model Selection
Ctrl+L- Open model selector (built-in)Alt+M- Cycle to next model (custom)Alt+Shift+M- Cycle to previous model (custom)
Reserved Keys (Built-in Pi)
Navigation
alt+b- cursorWordLeftalt+f- cursorWordRight ⚠️alt+d- deleteWordForwardalt+y- yankPop
Application
ctrl+c- copy/clearctrl+d- deleteCharForward/exit (overridden in keybindings.json)ctrl+g- external editorctrl+l- select modelctrl+o- expand toolsctrl+p- cycle model (overridden to cursorUp in keybindings.json)ctrl+t- toggle thinkingctrl+z- suspend
Message Queue
alt+enter- followUpalt+up- dequeue
Available for Custom Extensions
Safe Alt + Letters
alt+h, alt+i, alt+j, alt+k, alt+l, alt+m, alt+n, alt+o, alt+q, alt+s, alt+u, alt+v, alt+w, alt+x, alt+z
Safe Ctrl + Letters
ctrl+i, ctrl+j, ctrl+m, ctrl+q, ctrl+r, ctrl+s, ctrl+x
Function Keys
F1 through F12 (all available)
Ctrl+Alt Combinations
Most ctrl+alt+letter combinations are available
Configuration
- Global keybindings:
~/.pi/agent/keybindings.json - Extension shortcuts: Defined in extension files (e.g.,
files.ts)
See pi docs for full keybindings documentation.