summaryrefslogtreecommitdiffstats
path: root/pkg/config/user_config.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2023-05-26 16:38:58 +1000
committerJesse Duffield <jessedduffield@gmail.com>2023-05-26 17:31:39 +1000
commit0e0458f3557e4d9bd481e6f302d99e87bc7fcf64 (patch)
tree7bb2d64f82fde96d905b3ff890b2f10841ec7c91 /pkg/config/user_config.go
parent05bfa96936879c629f21de3e5fc7813a39562298 (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.go4
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"},