From 1712ad08aecad5cb4cd6ebce02f3f2f65dcc32ba Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Tue, 1 Aug 2023 18:30:38 +1000 Subject: [PATCH] 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 --- pkg/gui/gui.go | 2 +- pkg/integration/tests/demo/bisect.go | 1 - pkg/integration/tests/demo/interactive_rebase.go | 1 - 3 files changed, 1 insertion(+), 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().