diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-09-17 09:40:24 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-09-17 09:40:24 +0200 |
| commit | 0e067e693609589d46f5aa6e161b95cc905987cc (patch) | |
| tree | 913f5f0c63923863ab0cc90fd70568ed41a2c322 /gui/internal/model/prefs.go | |
| parent | 4d6386960c981678a8e8123a4db5463df7ee60bb (diff) | |
| download | krino-0e067e693609589d46f5aa6e161b95cc905987cc.tar.gz krino-0e067e693609589d46f5aa6e161b95cc905987cc.zip | |
gui: size and age columns, column toggles, readable colours, a laid-out explanation
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} |
