mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 09:04:26 +00:00
Merge kitty-protocol-support into main
This commit is contained in:
commit
139af12b37
11 changed files with 281 additions and 28 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue