summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2023-08-01 18:30:38 +1000
committerJesse Duffield <jessedduffield@gmail.com>2023-08-01 22:10:59 +1000
commit1712ad08aecad5cb4cd6ebce02f3f2f65dcc32ba (patch)
tree3f2f167cb79b360eb6666f49c7954c59437828da
parent53f0c1eb4fea90abe47819b1802dd23719654b29 (diff)
Start in fullscreen when passing a git arg
Often we just want to see the desired view in fullscreen so I'm making that the default
-rw-r--r--pkg/gui/gui.go2
-rw-r--r--pkg/integration/tests/demo/bisect.go1
-rw-r--r--pkg/integration/tests/demo/interactive_rebase.go1
3 files changed, 1 insertions, 3 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go
index f099db67e..f1e20da41 100644
--- a/pkg/gui/gui.go
+++ b/pkg/gui/gui.go
@@ -382,7 +382,7 @@ func initialWindowViewNameMap(contextTree *context.ContextTree) *utils.ThreadSaf
func initialScreenMode(startArgs appTypes.StartArgs, config config.AppConfigurer) types.WindowMaximisation {
if startArgs.FilterPath != "" || startArgs.GitArg != appTypes.GitArgNone {
- return types.SCREEN_HALF
+ return types.SCREEN_FULL
} else {
defaultWindowSize := config.GetUserConfig().Gui.WindowSize
diff --git a/pkg/integration/tests/demo/bisect.go b/pkg/integration/tests/demo/bisect.go
index d6191b6ea..b3cfe9936 100644
--- a/pkg/integration/tests/demo/bisect.go
+++ b/pkg/integration/tests/demo/bisect.go
@@ -45,7 +45,6 @@ var Bisect = NewIntegrationTest(NewIntegrationTestArgs{
t.Views().Commits().
IsFocused().
- Press(keys.Universal.NextScreenMode).
Tap(func() {
markCommitAsBad()
diff --git a/pkg/integration/tests/demo/interactive_rebase.go b/pkg/integration/tests/demo/interactive_rebase.go
index ca400a342..f8889d529 100644
--- a/pkg/integration/tests/demo/interactive_rebase.go
+++ b/pkg/integration/tests/demo/interactive_rebase.go
@@ -31,7 +31,6 @@ var InteractiveRebase = NewIntegrationTest(NewIntegrationTestArgs{
t.Views().Commits().
IsFocused().
- Press(keys.Universal.NextScreenMode).
NavigateToLine(Contains("Add TypeScript types to User module")).
Press(keys.Universal.Edit).
SelectPreviousItem().