diff --git a/packages/coding-agent/CHANGELOG.md b/packages/coding-agent/CHANGELOG.md index 05a4adad..ad3a064d 100644 --- a/packages/coding-agent/CHANGELOG.md +++ b/packages/coding-agent/CHANGELOG.md @@ -7,6 +7,7 @@ - Export `keyHint`, `appKeyHint`, `editorKey`, `appKey`, `rawKeyHint` for extensions to format keybinding hints consistently - Added `showHardwareCursor` setting to control cursor visibility while still positioning it for IME support. ([#800](https://github.com/badlogic/pi-mono/pull/800) by [@ghoulr](https://github.com/ghoulr)) - Added `ctx.compact()` and `ctx.getContextUsage()` to extension contexts for programmatic compaction and context usage checks. +- Added documentation for delete word forward and kill ring keybindings in interactive mode. ([#810](https://github.com/badlogic/pi-mono/pull/810) by [@Perlence](https://github.com/Perlence)) ## [0.48.0] - 2026-01-16 diff --git a/packages/coding-agent/README.md b/packages/coding-agent/README.md index 9522a218..7ad4e94c 100644 --- a/packages/coding-agent/README.md +++ b/packages/coding-agent/README.md @@ -350,8 +350,11 @@ Both modes are configurable via `/settings`: "one-at-a-time" delivers messages o | Enter | Send message | | Shift+Enter | New line (Ctrl+Enter on Windows Terminal) | | Ctrl+W / Option+Backspace | Delete word backwards | +| Alt+D | Delete word forwards | | Ctrl+U | Delete to start of line | | Ctrl+K | Delete to end of line | +| Ctrl+Y | Paste most recently deleted text | +| Alt+Y | Cycle through deleted text after pasting | **Other:** @@ -397,8 +400,11 @@ All keyboard shortcuts can be customized via `~/.pi/agent/keybindings.json`. Eac | `deleteCharBackward` | `backspace` | Delete char backward | | `deleteCharForward` | `delete` | Delete char forward | | `deleteWordBackward` | `ctrl+w`, `alt+backspace` | Delete word backward | +| `deleteWordForward` | `alt+d` | Delete word forward | | `deleteToLineStart` | `ctrl+u` | Delete to line start | | `deleteToLineEnd` | `ctrl+k` | Delete to line end | +| `yank` | `ctrl+y` | Paste most recently deleted text | +| `yankPop` | `alt+y` | Cycle through deleted text after pasting | | `newLine` | `shift+enter` | Insert new line | | `submit` | `enter` | Submit input | | `tab` | `tab` | Tab/autocomplete | diff --git a/packages/tui/CHANGELOG.md b/packages/tui/CHANGELOG.md index 37f6ffed..a4d12dcd 100644 --- a/packages/tui/CHANGELOG.md +++ b/packages/tui/CHANGELOG.md @@ -5,6 +5,8 @@ ### Added - Added `showHardwareCursor` getter and setter to control cursor visibility while keeping IME positioning active. ([#800](https://github.com/badlogic/pi-mono/pull/800) by [@ghoulr](https://github.com/ghoulr)) +- Added Emacs-style kill ring editing with yank and yank-pop keybindings. ([#810](https://github.com/badlogic/pi-mono/pull/810) by [@Perlence](https://github.com/Perlence)) +- Added legacy Alt+letter handling and Alt+D delete word forward support in the editor keymap. ([#810](https://github.com/badlogic/pi-mono/pull/810) by [@Perlence](https://github.com/Perlence)) ## [0.48.0] - 2026-01-16 diff --git a/packages/tui/src/components/editor.ts b/packages/tui/src/components/editor.ts index b7fc164a..ee498bd9 100644 --- a/packages/tui/src/components/editor.ts +++ b/packages/tui/src/components/editor.ts @@ -1565,6 +1565,7 @@ export class Editor implements Component, Focusable { * Insert text at cursor position (used by yank operations). */ private insertYankedText(text: string): void { + this.historyIndex = -1; // Exit history browsing mode const lines = text.split("\n"); if (lines.length === 1) {