Short comma-separated key hints everywhere; write down what is left to build

This commit is contained in:
Sam
2026-11-11 13:39:52 +11:00
parent f94934569d
commit 0476afcb95
14 changed files with 362 additions and 54 deletions

View File

@@ -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)
}