mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-31 14:24:25 +03:00
Default to half-screen mode when filtering files or using the git-arg CLI arg
It should have been half-screen from the get-go. I think I just used full-screen to make demos look nicer. Now that we have a CLI arg for the screen mode we can make use of that in the demos.
This commit is contained in:
@ -583,7 +583,7 @@ func initialScreenMode(startArgs appTypes.StartArgs, config config.AppConfigurer
|
|||||||
if startArgs.ScreenMode != "" {
|
if startArgs.ScreenMode != "" {
|
||||||
return getWindowMaximisation(startArgs.ScreenMode)
|
return getWindowMaximisation(startArgs.ScreenMode)
|
||||||
} else if startArgs.FilterPath != "" || startArgs.GitArg != appTypes.GitArgNone {
|
} else if startArgs.FilterPath != "" || startArgs.GitArg != appTypes.GitArgNone {
|
||||||
return types.SCREEN_FULL
|
return types.SCREEN_HALF
|
||||||
} else {
|
} else {
|
||||||
return getWindowMaximisation(config.GetUserConfig().Gui.WindowSize)
|
return getWindowMaximisation(config.GetUserConfig().Gui.WindowSize)
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
var Bisect = NewIntegrationTest(NewIntegrationTestArgs{
|
var Bisect = NewIntegrationTest(NewIntegrationTestArgs{
|
||||||
Description: "Interactive rebase",
|
Description: "Interactive rebase",
|
||||||
ExtraCmdArgs: []string{"log"},
|
ExtraCmdArgs: []string{"log", "--screen-mode=full"},
|
||||||
Skip: false,
|
Skip: false,
|
||||||
IsDemo: true,
|
IsDemo: true,
|
||||||
SetupConfig: func(config *config.AppConfig) {
|
SetupConfig: func(config *config.AppConfig) {
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
var CommitGraph = NewIntegrationTest(NewIntegrationTestArgs{
|
var CommitGraph = NewIntegrationTest(NewIntegrationTestArgs{
|
||||||
Description: "Show commit graph",
|
Description: "Show commit graph",
|
||||||
ExtraCmdArgs: []string{"log"},
|
ExtraCmdArgs: []string{"log", "--screen-mode=full"},
|
||||||
Skip: false,
|
Skip: false,
|
||||||
IsDemo: true,
|
IsDemo: true,
|
||||||
SetupConfig: func(config *config.AppConfig) {
|
SetupConfig: func(config *config.AppConfig) {
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
var InteractiveRebase = NewIntegrationTest(NewIntegrationTestArgs{
|
var InteractiveRebase = NewIntegrationTest(NewIntegrationTestArgs{
|
||||||
Description: "Interactive rebase",
|
Description: "Interactive rebase",
|
||||||
ExtraCmdArgs: []string{"log"},
|
ExtraCmdArgs: []string{"log", "--screen-mode=full"},
|
||||||
Skip: false,
|
Skip: false,
|
||||||
IsDemo: true,
|
IsDemo: true,
|
||||||
SetupConfig: func(config *config.AppConfig) {
|
SetupConfig: func(config *config.AppConfig) {
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
var NukeWorkingTree = NewIntegrationTest(NewIntegrationTestArgs{
|
var NukeWorkingTree = NewIntegrationTest(NewIntegrationTestArgs{
|
||||||
Description: "Nuke the working tree",
|
Description: "Nuke the working tree",
|
||||||
ExtraCmdArgs: []string{"status"},
|
ExtraCmdArgs: []string{"status", "--screen-mode=full"},
|
||||||
Skip: false,
|
Skip: false,
|
||||||
IsDemo: true,
|
IsDemo: true,
|
||||||
SetupConfig: func(config *config.AppConfig) {
|
SetupConfig: func(config *config.AppConfig) {
|
||||||
|
Reference in New Issue
Block a user