From d694249b7f86cf4fff7f2006889a9898f7cd64ef Mon Sep 17 00:00:00 2001 From: sawka Date: Mon, 9 Dec 2024 13:11:08 -0800 Subject: [PATCH] tab:preset setting --- frontend/types/gotypes.d.ts | 1 + pkg/wconfig/metaconsts.go | 2 ++ pkg/wconfig/settingsconfig.go | 2 ++ 3 files changed, 5 insertions(+) diff --git a/frontend/types/gotypes.d.ts b/frontend/types/gotypes.d.ts index 1e4d53ca1..8584c1260 100644 --- a/frontend/types/gotypes.d.ts +++ b/frontend/types/gotypes.d.ts @@ -638,6 +638,7 @@ declare global { "autoupdate:installonquit"?: boolean; "autoupdate:channel"?: string; "preview:showhiddenfiles"?: boolean; + "tab:preset"?: string; "widget:*"?: boolean; "widget:showhelp"?: boolean; "window:*"?: boolean; diff --git a/pkg/wconfig/metaconsts.go b/pkg/wconfig/metaconsts.go index 87d8940dd..40c40f592 100644 --- a/pkg/wconfig/metaconsts.go +++ b/pkg/wconfig/metaconsts.go @@ -48,6 +48,8 @@ const ( ConfigKey_PreviewShowHiddenFiles = "preview:showhiddenfiles" + ConfigKey_TabPreset = "tab:preset" + ConfigKey_WidgetClear = "widget:*" ConfigKey_WidgetShowHelp = "widget:showhelp" diff --git a/pkg/wconfig/settingsconfig.go b/pkg/wconfig/settingsconfig.go index ae49174cf..5b64adae7 100644 --- a/pkg/wconfig/settingsconfig.go +++ b/pkg/wconfig/settingsconfig.go @@ -75,6 +75,8 @@ type SettingsType struct { PreviewShowHiddenFiles *bool `json:"preview:showhiddenfiles,omitempty"` + TabPreset string `json:"tab:preset,omitempty"` + WidgetClear bool `json:"widget:*,omitempty"` WidgetShowHelp *bool `json:"widget:showhelp,omitempty"`