summaryrefslogtreecommitdiffstats
path: root/pkg/config
diff options
context:
space:
mode:
authorRyooooooga <eial5q265e5@gmail.com>2022-05-13 21:56:07 +0900
committerRyooooooga <eial5q265e5@gmail.com>2022-05-18 20:55:27 +0900
commit1f1d871837978f44b274b474fef6a3bbef527dae (patch)
tree6089a8a9bdfd6b7d826467eda906faf246eea3fd /pkg/config
parente28d1334e9ef666bb238f2303ada100eca8d3f21 (diff)
feat: add ability to customize time format
Diffstat (limited to 'pkg/config')
-rw-r--r--pkg/config/user_config.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/config/user_config.go b/pkg/config/user_config.go
index 5c90f85a7..6ff3b36a1 100644
--- a/pkg/config/user_config.go
+++ b/pkg/config/user_config.go
@@ -1,5 +1,9 @@
package config
+import (
+ "time"
+)
+
type UserConfig struct {
Gui GuiConfig `yaml:"gui"`
Git GitConfig `yaml:"git"`
@@ -36,6 +40,7 @@ type GuiConfig struct {
ExpandFocusedSidePanel bool `yaml:"expandFocusedSidePanel"`
MainPanelSplitMode string `yaml:"mainPanelSplitMode"`
Language string `yaml:"language"`
+ TimeFormat string `yaml:"timeFormat"`
Theme ThemeConfig `yaml:"theme"`
CommitLength CommitLengthConfig `yaml:"commitLength"`
SkipNoStagedFilesWarning bool `yaml:"skipNoStagedFilesWarning"`
@@ -341,6 +346,7 @@ func GetDefaultConfig() *UserConfig {
ExpandFocusedSidePanel: false,
MainPanelSplitMode: "flexible",
Language: "auto",
+ TimeFormat: time.RFC822,
Theme: ThemeConfig{
LightTheme: false,
ActiveBorderColor: []string{"green", "bold"},