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:
parent
53f0c1eb4f
commit
1712ad08ae
@ -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
|
||||
|
||||
|
@ -45,7 +45,6 @@ var Bisect = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
|
||||
t.Views().Commits().
|
||||
IsFocused().
|
||||
Press(keys.Universal.NextScreenMode).
|
||||
Tap(func() {
|
||||
markCommitAsBad()
|
||||
|
||||
|
@ -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().
|
||||
|
Loading…
Reference in New Issue
Block a user