mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-17 02:04:05 +00:00
Merge PR #36: Add Shift+Tab thinking level cycling with visual border feedback
This commit is contained in:
commit
973a129407
4 changed files with 104 additions and 16 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue