Skip to content

Commit f710232

Browse files
committed
feat(cli): support Ctrl-Z suspension
- Implement Ctrl+Z suspension with robust terminal state handling. - Rebind Undo/Redo to Alt+Z / Alt+Shift+Z to avoid conflicts. - Fix macOS Option key character mapping for Undo/Redo. - Improve type safety for app.rerender() in AppContainer. - Add comprehensive suspension test suite. - Fix environment leakage in core tests. - Update keyboard shortcut documentation. Fixes google-gemini#5018
1 parent a37844e commit f710232

10 files changed

Lines changed: 632 additions & 20 deletions

File tree

docs/cli/keyboard-shortcuts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ available combinations.
119119
| Move focus from the shell back to Gemini. | `Shift + Tab` |
120120
| Clear the terminal screen and redraw the UI. | `Ctrl + L` |
121121
| Restart the application. | `R` |
122-
| Suspend the application (not yet implemented). | `Ctrl + Z` |
122+
| Suspend the CLI and move it to the background. | `Ctrl + Z` |
123123

124124
<!-- KEYBINDINGS-AUTOGEN:END -->
125125

packages/cli/src/config/keyBindings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,5 +518,5 @@ export const commandDescriptions: Readonly<Record<Command, string>> = {
518518
[Command.UNFOCUS_SHELL_INPUT]: 'Move focus from the shell back to Gemini.',
519519
[Command.CLEAR_SCREEN]: 'Clear the terminal screen and redraw the UI.',
520520
[Command.RESTART_APP]: 'Restart the application.',
521-
[Command.SUSPEND_APP]: 'Suspend the application (not yet implemented).',
521+
[Command.SUSPEND_APP]: 'Suspend the CLI and move it to the background.',
522522
};

0 commit comments

Comments
 (0)