mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 01:03:49 +00:00
feat: add editorPaddingX setting for input editor horizontal padding
This commit is contained in:
parent
5d3e7d5aaa
commit
fe52ff00d2
6 changed files with 46 additions and 2 deletions
|
|
@ -70,6 +70,7 @@ export interface Settings {
|
|||
enabledModels?: string[]; // Model patterns for cycling (same format as --models CLI flag)
|
||||
doubleEscapeAction?: "fork" | "tree"; // Action for double-escape with empty editor (default: "tree")
|
||||
thinkingBudgets?: ThinkingBudgetsSettings; // Custom token budgets for thinking levels
|
||||
editorPaddingX?: number; // Horizontal padding for input editor (default: 0)
|
||||
}
|
||||
|
||||
/** Deep merge settings: project/overrides take precedence, nested objects merge recursively */
|
||||
|
|
@ -480,4 +481,13 @@ export class SettingsManager {
|
|||
this.globalSettings.doubleEscapeAction = action;
|
||||
this.save();
|
||||
}
|
||||
|
||||
getEditorPaddingX(): number {
|
||||
return this.settings.editorPaddingX ?? 0;
|
||||
}
|
||||
|
||||
setEditorPaddingX(padding: number): void {
|
||||
this.globalSettings.editorPaddingX = Math.max(0, Math.min(3, Math.floor(padding)));
|
||||
this.save();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue