diff options
Diffstat (limited to 'gui/internal/model/prefs.go')
| -rw-r--r-- | gui/internal/model/prefs.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gui/internal/model/prefs.go b/gui/internal/model/prefs.go index 77aa784..6b3a6cb 100644 --- a/gui/internal/model/prefs.go +++ b/gui/internal/model/prefs.go @@ -31,6 +31,11 @@ type Prefs struct { // moves is kept (his request, 2026-09-17). ListWidth int `json:"list_width"` ListHeight int `json:"list_height"` + // ShowSize, ShowAge and ShowRule are the columns that can be turned off + // when the window is narrow or they are not wanted. + ShowSize bool `json:"show_size"` + ShowAge bool `json:"show_age"` + ShowRule bool `json:"show_rule"` // Layout is how the Plan tab is arranged: "side" puts the file list // beside the explanation, "stacked" puts it above, with the preview // beside the explanation underneath. @@ -55,6 +60,7 @@ const ( // DefaultPrefs is what a window does before anything is chosen. func DefaultPrefs() Prefs { return Prefs{Colours: true, Preview: true, SelectAll: true, + ShowSize: true, ShowAge: true, ShowRule: true, PreviewHeight: DefaultPreviewHeight, PreviewWidth: DefaultPreviewWidth, ListWidth: DefaultListWidth, ListHeight: DefaultListHeight, Layout: LayoutSide} |
