feat: add scroll speed to config (#1968)

This commit is contained in:
Aiden Cline 2025-08-15 13:21:02 -05:00 committed by GitHub
commit dc01071498
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 116 additions and 62 deletions

View file

@ -274,6 +274,10 @@ export namespace Config {
ref: "KeybindsConfig",
})
export const TUI = z.object({
scroll_speed: z.number().min(1).optional().default(2).describe("TUI scroll speed"),
})
export const Layout = z.enum(["auto", "stretch"]).openapi({
ref: "LayoutConfig",
})
@ -284,6 +288,7 @@ export namespace Config {
$schema: z.string().optional().describe("JSON schema reference for configuration validation"),
theme: z.string().optional().describe("Theme name to use for the interface"),
keybinds: Keybinds.optional().describe("Custom keybind configurations"),
tui: TUI.optional().describe("TUI specific settings"),
plugin: z.string().array().optional(),
snapshot: z.boolean().optional(),
share: z