mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-21 22:01:41 +00:00
fix: change thinking level cycling from Ctrl+T to Shift+Tab
This commit is contained in:
parent
5336843de8
commit
ac34a810dd
2 changed files with 6 additions and 6 deletions
|
|
@ -6,12 +6,12 @@ import { Editor } from "@mariozechner/pi-tui";
|
||||||
export class CustomEditor extends Editor {
|
export class CustomEditor extends Editor {
|
||||||
public onEscape?: () => void;
|
public onEscape?: () => void;
|
||||||
public onCtrlC?: () => void;
|
public onCtrlC?: () => void;
|
||||||
public onCtrlT?: () => void;
|
public onShiftTab?: () => void;
|
||||||
|
|
||||||
handleInput(data: string): void {
|
handleInput(data: string): void {
|
||||||
// Intercept Ctrl+T for thinking level cycling
|
// Intercept Shift+Tab for thinking level cycling
|
||||||
if (data === "\x14" && this.onCtrlT) {
|
if (data === "\x1b[Z" && this.onShiftTab) {
|
||||||
this.onCtrlT();
|
this.onShiftTab();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -169,7 +169,7 @@ export class TuiRenderer {
|
||||||
chalk.dim("ctrl+k") +
|
chalk.dim("ctrl+k") +
|
||||||
chalk.gray(" to delete line") +
|
chalk.gray(" to delete line") +
|
||||||
"\n" +
|
"\n" +
|
||||||
chalk.dim("ctrl+t") +
|
chalk.dim("shift+tab") +
|
||||||
chalk.gray(" to cycle thinking") +
|
chalk.gray(" to cycle thinking") +
|
||||||
"\n" +
|
"\n" +
|
||||||
chalk.dim("/") +
|
chalk.dim("/") +
|
||||||
|
|
@ -213,7 +213,7 @@ export class TuiRenderer {
|
||||||
this.handleCtrlC();
|
this.handleCtrlC();
|
||||||
};
|
};
|
||||||
|
|
||||||
this.editor.onCtrlT = () => {
|
this.editor.onShiftTab = () => {
|
||||||
this.cycleThinkingLevel();
|
this.cycleThinkingLevel();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue