diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2023-05-26 16:38:58 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2023-05-26 17:31:39 +1000 |
commit | 0e0458f3557e4d9bd481e6f302d99e87bc7fcf64 (patch) | |
tree | 7bb2d64f82fde96d905b3ff890b2f10841ec7c91 /pkg/config/user_config.go | |
parent | 05bfa96936879c629f21de3e5fc7813a39562298 (diff) |
More compact and flexible date format
You can now configure both a time format and a short time format, where the short format kicks in
when the time is within the last day
Diffstat (limited to 'pkg/config/user_config.go')
-rw-r--r-- | pkg/config/user_config.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/config/user_config.go b/pkg/config/user_config.go index 9212a2de8..3b311c0de 100644 --- a/pkg/config/user_config.go +++ b/pkg/config/user_config.go @@ -39,6 +39,7 @@ type GuiConfig struct { MainPanelSplitMode string `yaml:"mainPanelSplitMode"` Language string `yaml:"language"` TimeFormat string `yaml:"timeFormat"` + ShortTimeFormat string `yaml:"shortTimeFormat"` Theme ThemeConfig `yaml:"theme"` CommitLength CommitLengthConfig `yaml:"commitLength"` SkipNoStagedFilesWarning bool `yaml:"skipNoStagedFilesWarning"` @@ -398,7 +399,8 @@ func GetDefaultConfig() *UserConfig { ExpandFocusedSidePanel: false, MainPanelSplitMode: "flexible", Language: "auto", - TimeFormat: time.RFC822, + TimeFormat: "02 Jan 06", + ShortTimeFormat: time.Kitchen, Theme: ThemeConfig{ ActiveBorderColor: []string{"green", "bold"}, InactiveBorderColor: []string{"default"}, |