make keybinds configurable and consolidate

This commit is contained in:
2026-07-28 14:55:38 +02:00
parent bb8e91039f
commit 948f3e1a79
12 changed files with 1469 additions and 158 deletions

View File

@@ -177,7 +177,15 @@ func (m App) branchCompletionLines(width int) []string {
if len(suggestions) == 0 {
return []string{dimStyle.Render(" no matching repository branches")}
}
lines := []string{dimStyle.Render(" ctrl-p/n choose • tab/enter complete • tab again advances")}
lines := []string{dimStyle.Render(fmt.Sprintf(
" %s choose • %s complete • %s again advances",
primaryCombinedKeyLabel(
m.keybindings.Input.PreviousCompletion,
m.keybindings.Input.NextCompletion,
),
primaryCombinedKeyLabel(m.keybindings.Input.NextField, m.keybindings.Input.Newline),
primaryKeyLabel(m.keybindings.Input.NextField),
))}
now := time.Now()
for index, suggestion := range suggestions {
prefix := " "