Merge kitty-protocol-support into main

This commit is contained in:
Mario Zechner 2025-12-19 01:21:47 +01:00
commit 139af12b37
11 changed files with 281 additions and 28 deletions

View file

@ -573,6 +573,7 @@ export class InteractiveMode {
};
this.editor.onCtrlC = () => this.handleCtrlC();
this.editor.onCtrlD = () => this.handleCtrlD();
this.editor.onShiftTab = () => this.cycleThinkingLevel();
this.editor.onCtrlP = () => this.cycleModel();
this.editor.onCtrlO = () => this.toggleToolOutputExpansion();
@ -1144,6 +1145,12 @@ export class InteractiveMode {
}
}
private handleCtrlD(): void {
// Only called when editor is empty (enforced by CustomEditor)
this.stop();
process.exit(0);
}
private updateEditorBorderColor(): void {
if (this.isBashMode) {
this.editor.borderColor = theme.getBashModeBorderColor();