status

package
v0.59.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2026 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClickRepoNameToOpenReposMenu = NewIntegrationTest(NewIntegrationTestArgs{
	Description:  "Click on the repo name in the status side panel to open the recent repositories menu",
	ExtraCmdArgs: []string{},
	Skip:         false,
	SetupConfig:  func(config *config.AppConfig) {},
	SetupRepo:    func(shell *Shell) {},
	Run: func(t *TestDriver, keys config.KeybindingConfig) {
		t.Views().Status().Click(1, 0)
		t.ExpectPopup().Menu().Title(Equals("Recent repositories"))
	},
})
View Source
var ClickToFocus = NewIntegrationTest(NewIntegrationTestArgs{
	Description:  "Click in the status side panel to activate it",
	ExtraCmdArgs: []string{},
	Skip:         false,
	SetupConfig:  func(config *config.AppConfig) {},
	SetupRepo:    func(shell *Shell) {},
	Run: func(t *TestDriver, keys config.KeybindingConfig) {
		t.Views().Files().Focus()
		t.Views().Main().Lines(
			Contains("No changed files"),
		)

		t.Views().Status().Click(0, 0)
		t.Views().Status().IsFocused()
		t.Views().Main().ContainsLines(
			Contains(`   _`),
			Contains(`  | |                     (_) |`),
			Contains(`  | | __ _ _____   _  __ _ _| |_`),
			Contains("  | |/ _` |_  / | | |/ _` | | __|"),
			Contains(`  | | (_| |/ /| |_| | (_| | | |_`),
			Contains(`  |_|\__,_/___|\__, |\__, |_|\__|`),
			Contains(`                __/ | __/ |`),
			Contains(`               |___/ |___/`),
			Contains(``),
			Contains(`Copyright `),
		)
	},
})
View Source
var ClickWorkingTreeStateToOpenRebaseOptionsMenu = NewIntegrationTest(NewIntegrationTestArgs{
	Description:  "Click on the working tree state in the status side panel to open the rebase options menu",
	ExtraCmdArgs: []string{},
	Skip:         false,
	SetupConfig:  func(config *config.AppConfig) {},
	SetupRepo: func(shell *Shell) {
		shell.CreateNCommits(2)
	},
	Run: func(t *TestDriver, keys config.KeybindingConfig) {
		t.Views().Commits().
			Focus().
			Press(keys.Universal.Edit)

		t.Views().Status().
			Content(Contains("(rebasing) repo")).
			Click(1, 0)

		t.ExpectPopup().Menu().Title(Equals("Rebase options"))
	},
})
View Source
var LogCmd = NewIntegrationTest(NewIntegrationTestArgs{
	Description:  "Cycle between two different log commands in the Status view",
	ExtraCmdArgs: []string{},
	Skip:         false,
	SetupConfig: func(config *config.AppConfig) {
		config.GetUserConfig().Git.AllBranchesLogCmds = []string{`echo "view1"`, `echo "view2"`}
	},
	SetupRepo: func(shell *Shell) {},
	Run: func(t *TestDriver, keys config.KeybindingConfig) {
		t.Views().Status().
			Focus().
			Press(keys.Status.AllBranchesLogGraph)
		t.Views().Main().Content(Contains("view1"))

		t.Views().Status().
			Focus().
			Press(keys.Status.AllBranchesLogGraph)
		t.Views().Main().Content(Contains("view2").DoesNotContain("view1"))

		t.Views().Status().
			Focus().
			Press(keys.Status.AllBranchesLogGraph)
		t.Views().Main().Content(Contains("view1").DoesNotContain("view2"))
	},
})
View Source
var LogCmdStatusPanelAllBranchesLog = NewIntegrationTest(NewIntegrationTestArgs{
	Description:  "Cycle between two different log commands in the Status view when it has status panel AllBranchesLog",
	ExtraCmdArgs: []string{},
	Skip:         false,
	SetupConfig: func(config *config.AppConfig) {
		config.GetUserConfig().Git.AllBranchesLogCmds = []string{`echo "view1"`, `echo "view2"`}
		config.GetUserConfig().Gui.StatusPanelView = "allBranchesLog"
	},
	SetupRepo: func(shell *Shell) {},
	Run: func(t *TestDriver, keys config.KeybindingConfig) {
		t.Views().Status().
			Focus()
		t.Views().Main().Content(Contains("view1"))

		t.Views().Branches().
			Focus()
		t.Views().Status().
			Focus()

		t.Views().Main().Content(Contains("view1").DoesNotContain("view2"))

		t.Views().Status().
			Press(keys.Status.AllBranchesLogGraph)
		t.Views().Main().Content(Contains("view2").DoesNotContain("view1"))

		t.Views().Status().
			Press(keys.Status.AllBranchesLogGraph)
		t.Views().Main().Content(Contains("view1").DoesNotContain("view2"))
	},
})

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL