From 7b0244a5edbbf84b1b2596dde64a84300430c869 Mon Sep 17 00:00:00 2001 From: Sviatoslav Abakumov Date: Sat, 24 Jan 2026 13:33:49 +0400 Subject: [PATCH] docs(coding-agent): document missing hotkeys in README and /hotkeys - Add Ctrl+L (Open model selector) to /hotkeys command - Add Alt+Enter (Queue follow-up message) to keyboard shortcuts table - Add PageUp/PageDown (Scroll by page) to all documentation sections --- packages/coding-agent/README.md | 4 ++++ .../coding-agent/src/modes/interactive/interactive-mode.ts | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/packages/coding-agent/README.md b/packages/coding-agent/README.md index f2c62a2d..6525579f 100644 --- a/packages/coding-agent/README.md +++ b/packages/coding-agent/README.md @@ -343,6 +343,7 @@ Both modes are configurable via `/settings`: "one-at-a-time" delivers messages o | Option+Left/Right | Move by word | | Ctrl+A / Home / Cmd+Left | Start of line | | Ctrl+E / End / Cmd+Right | End of line | +| PageUp / PageDown | Scroll by page | **Editing:** @@ -374,6 +375,7 @@ Both modes are configurable via `/settings`: "one-at-a-time" delivers messages o | Ctrl+T | Toggle thinking block visibility | | Ctrl+G | Edit message in external editor (`$VISUAL` or `$EDITOR`) | | Ctrl+V | Paste image from clipboard | +| Alt+Enter | Queue follow-up message | | Alt+Up | Restore queued messages to editor | ### Custom Keybindings @@ -399,6 +401,8 @@ All keyboard shortcuts can be customized via `~/.pi/agent/keybindings.json`. Eac | `cursorWordRight` | `alt+right`, `ctrl+right` | Move cursor word right | | `cursorLineStart` | `home`, `ctrl+a` | Move to line start | | `cursorLineEnd` | `end`, `ctrl+e` | Move to line end | +| `pageUp` | `pageUp` | Scroll up by page | +| `pageDown` | `pageDown` | Scroll down by page | | `deleteCharBackward` | `backspace` | Delete char backward | | `deleteCharForward` | `delete` | Delete char forward | | `deleteWordBackward` | `ctrl+w`, `alt+backspace` | Delete word backward | diff --git a/packages/coding-agent/src/modes/interactive/interactive-mode.ts b/packages/coding-agent/src/modes/interactive/interactive-mode.ts index 0bca4ea6..b2ee8138 100644 --- a/packages/coding-agent/src/modes/interactive/interactive-mode.ts +++ b/packages/coding-agent/src/modes/interactive/interactive-mode.ts @@ -3898,6 +3898,8 @@ export class InteractiveMode { const cursorWordRight = this.getEditorKeyDisplay("cursorWordRight"); const cursorLineStart = this.getEditorKeyDisplay("cursorLineStart"); const cursorLineEnd = this.getEditorKeyDisplay("cursorLineEnd"); + const pageUp = this.getEditorKeyDisplay("pageUp"); + const pageDown = this.getEditorKeyDisplay("pageDown"); // Editing keybindings const submit = this.getEditorKeyDisplay("submit"); @@ -3918,6 +3920,7 @@ export class InteractiveMode { const suspend = this.getAppKeyDisplay("suspend"); const cycleThinkingLevel = this.getAppKeyDisplay("cycleThinkingLevel"); const cycleModelForward = this.getAppKeyDisplay("cycleModelForward"); + const selectModel = this.getAppKeyDisplay("selectModel"); const expandTools = this.getAppKeyDisplay("expandTools"); const toggleThinking = this.getAppKeyDisplay("toggleThinking"); const externalEditor = this.getAppKeyDisplay("externalEditor"); @@ -3932,6 +3935,7 @@ export class InteractiveMode { | \`${cursorWordLeft}\` / \`${cursorWordRight}\` | Move by word | | \`${cursorLineStart}\` | Start of line | | \`${cursorLineEnd}\` | End of line | +| \`${pageUp}\` / \`${pageDown}\` | Scroll by page | **Editing** | Key | Action | @@ -3956,6 +3960,7 @@ export class InteractiveMode { | \`${suspend}\` | Suspend to background | | \`${cycleThinkingLevel}\` | Cycle thinking level | | \`${cycleModelForward}\` | Cycle models | +| \`${selectModel}\` | Open model selector | | \`${expandTools}\` | Toggle tool output expansion | | \`${toggleThinking}\` | Toggle thinking block visibility | | \`${externalEditor}\` | Edit message in external editor |