Merge PR #36: Add Shift+Tab thinking level cycling with visual border feedback

This commit is contained in:
Mario Zechner 2025-11-20 12:34:12 +01:00
commit 973a129407
4 changed files with 104 additions and 16 deletions

View file

@ -28,6 +28,9 @@ export class Editor implements Component {
private config: TextEditorConfig = {};
// Border color (can be changed dynamically)
public borderColor: (str: string) => string = chalk.gray;
// Autocomplete support
private autocompleteProvider?: AutocompleteProvider;
private autocompleteList?: SelectList;
@ -61,7 +64,7 @@ export class Editor implements Component {
}
render(width: number): string[] {
const horizontal = chalk.gray("─");
const horizontal = this.borderColor("─");
// Layout the text - use full width
const layoutLines = this.layoutText(width);