mirror of
https://github.com/charmbracelet/glow
synced 2024-11-10 14:14:17 +00:00
Highlight stash choice in file listing footer
This commit is contained in:
parent
04b6089bd9
commit
2e16f2682e
1 changed files with 9 additions and 1 deletions
10
ui/stash.go
10
ui/stash.go
|
@ -718,7 +718,15 @@ func stashHelpViewBuilder(windowWidth int, sections ...string) string {
|
|||
}
|
||||
for i := 0; i < len(sections); i++ {
|
||||
|
||||
next = stashHelpItemStyle(sections[i])
|
||||
// If we need this more often we'll formalize something rather than
|
||||
// use an if clause/switch here.
|
||||
switch sections[i] {
|
||||
case "s: stash":
|
||||
next = greenFg(sections[i])
|
||||
default:
|
||||
next = stashHelpItemStyle(sections[i])
|
||||
}
|
||||
|
||||
if i < len(sections)-1 {
|
||||
next += stashHelpDivider
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue