Short comma-separated key hints everywhere; write down what is left to build
This commit is contained in:
@@ -214,9 +214,10 @@ func keyHint(keys, what string) string {
|
||||
return k + " " + w
|
||||
}
|
||||
|
||||
// hintLine joins key hints with a dot, dropping the ones that do not apply.
|
||||
// hintLine joins key hints with a comma, because a footer is a list of keys and
|
||||
// not a sentence.
|
||||
func hintLine(hints []string, width int) string {
|
||||
joined := strings.Join(hints, dimStyle().Render(" · "))
|
||||
joined := strings.Join(hints, dimStyle().Render(", "))
|
||||
if lipgloss.Width(joined) > width {
|
||||
return truncateVisible(joined, width)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user