summaryrefslogtreecommitdiffstats
path: root/pkg/config
diff options
context:
space:
mode:
authorStefan Haller <stefan@haller-berlin.de>2023-11-26 13:11:50 +0100
committerStefan Haller <stefan@haller-berlin.de>2024-01-09 15:45:26 +0100
commitd70dd5123dfca5248ab9f2396307c46eff96bcb4 (patch)
tree5bb529272ecf770ca18c299a975426cb26aa525d /pkg/config
parent15da70214086a1485e2a6d1d2f792fec80755ce5 (diff)
Add config setting for side panel location (left or top) in half screen mode
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 2392d49cf..ffc27eb88 100644
--- a/pkg/config/user_config.go
+++ b/pkg/config/user_config.go
@@ -84,6 +84,11 @@ type GuiConfig struct {
// - 'vertical': split the window vertically
// - 'flexible': (default) split the window horizontally if the window is wide enough, otherwise split vertically
MainPanelSplitMode string `yaml:"mainPanelSplitMode" jsonschema:"enum=horizontal,enum=flexible,enum=vertical"`
+ // How the window is split when in half screen mode (i.e. after hitting '+' once).
+ // Possible values:
+ // - 'left': split the window horizontally (side panel on the left, main view on the right)
+ // - 'top': split the window vertically (side panel on top, main view below)
+ EnlargedSideViewLocation string `yaml:"enlargedSideViewLocation"`
// One of 'auto' (default) | 'en' | 'zh-CN' | 'zh-TW' | 'pl' | 'nl' | 'ja' | 'ko' | 'ru'
Language string `yaml:"language" jsonschema:"enum=auto,enum=en,enum=zh-TW,enum=zh-CN,enum=pl,enum=nl,enum=ja,enum=ko,enum=ru"`
// Format used when displaying time e.g. commit time.
@@ -604,6 +609,7 @@ func GetDefaultConfig() *UserConfig {
SidePanelWidth: 0.3333,
ExpandFocusedSidePanel: false,
MainPanelSplitMode: "flexible",
+ EnlargedSideViewLocation: "left",
Language: "auto",
TimeFormat: "02 Jan 06",
ShortTimeFormat: time.Kitchen,