mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 20:36:03 +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
3 changed files with 1 additions and 3 deletions
|
@ -382,7 +382,7 @@ func initialWindowViewNameMap(contextTree *context.ContextTree) *utils.ThreadSaf
|
||||||
|
|
||||||
func initialScreenMode(startArgs appTypes.StartArgs, config config.AppConfigurer) types.WindowMaximisation {
|
func initialScreenMode(startArgs appTypes.StartArgs, config config.AppConfigurer) types.WindowMaximisation {
|
||||||
if startArgs.FilterPath != "" || startArgs.GitArg != appTypes.GitArgNone {
|
if startArgs.FilterPath != "" || startArgs.GitArg != appTypes.GitArgNone {
|
||||||
return types.SCREEN_HALF
|
return types.SCREEN_FULL
|
||||||
} else {
|
} else {
|
||||||
defaultWindowSize := config.GetUserConfig().Gui.WindowSize
|
defaultWindowSize := config.GetUserConfig().Gui.WindowSize
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,6 @@ var Bisect = NewIntegrationTest(NewIntegrationTestArgs{
|
||||||
|
|
||||||
t.Views().Commits().
|
t.Views().Commits().
|
||||||
IsFocused().
|
IsFocused().
|
||||||
Press(keys.Universal.NextScreenMode).
|
|
||||||
Tap(func() {
|
Tap(func() {
|
||||||
markCommitAsBad()
|
markCommitAsBad()
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,6 @@ var InteractiveRebase = NewIntegrationTest(NewIntegrationTestArgs{
|
||||||
|
|
||||||
t.Views().Commits().
|
t.Views().Commits().
|
||||||
IsFocused().
|
IsFocused().
|
||||||
Press(keys.Universal.NextScreenMode).
|
|
||||||
NavigateToLine(Contains("Add TypeScript types to User module")).
|
NavigateToLine(Contains("Add TypeScript types to User module")).
|
||||||
Press(keys.Universal.Edit).
|
Press(keys.Universal.Edit).
|
||||||
SelectPreviousItem().
|
SelectPreviousItem().
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue