1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-10-28 04:14:56 +03:00

Show only labels in menuFromCommand prompts

This commit is contained in:
Elwardi
2021-08-06 18:38:26 +01:00
parent 906ec30cac
commit dcd3b7c058
3 changed files with 38 additions and 30 deletions

View File

@@ -105,7 +105,7 @@ func TestGuiGenerateMenuCandidates(t *testing.T) {
},
},
{
"Multiple named groups with empty description",
"Multiple named groups with empty labelFormat",
"upstream/pr-1",
"(?P<remote>[a-z]*)/(?P<branch>.*)",
"{{ .branch }}|{{ .remote }}",
@@ -113,7 +113,7 @@ func TestGuiGenerateMenuCandidates(t *testing.T) {
func(actualEntry []CommandMenuEntry, err error) {
assert.NoError(t, err)
assert.EqualValues(t, "pr-1|upstream", actualEntry[0].value)
assert.EqualValues(t, "", actualEntry[0].label)
assert.EqualValues(t, "pr-1|upstream", actualEntry[0].label)
},
},
{