1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-10 11:10:18 +02:00

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
This commit is contained in:
Jesse Duffield 2023-08-01 18:30:38 +10:00
parent 53f0c1eb4f
commit 1712ad08ae
3 changed files with 1 additions and 3 deletions

View File

@ -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

View File

@ -45,7 +45,6 @@ var Bisect = NewIntegrationTest(NewIntegrationTestArgs{
t.Views().Commits().
IsFocused().
Press(keys.Universal.NextScreenMode).
Tap(func() {
markCommitAsBad()

View File

@ -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().