feat: add editorPaddingX setting for input editor horizontal padding

This commit is contained in:
Mario Zechner 2026-01-16 23:50:00 +01:00
parent 5d3e7d5aaa
commit fe52ff00d2
6 changed files with 46 additions and 2 deletions

View file

@ -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();
}
}