feat: improve textbox editor behaviour

This commit is contained in:
2026-07-31 15:36:23 +02:00
parent b24669e604
commit e36b00f741
15 changed files with 504 additions and 154 deletions

View File

@@ -178,13 +178,12 @@ func (m App) branchCompletionLines(width int) []string {
return []string{dimStyle.Render(" no matching repository branches")}
}
lines := []string{dimStyle.Render(fmt.Sprintf(
" %s choose • %s complete • %s again advances",
" %s choose • %s complete",
primaryCombinedKeyLabel(
m.keybindings.Input.PreviousCompletion,
m.keybindings.Input.NextCompletion,
),
primaryCombinedKeyLabel(m.keybindings.Input.NextField, m.keybindings.Input.Newline),
primaryKeyLabel(m.keybindings.Input.NextField),
primaryKeyLabel(m.keybindings.Input.Newline),
))}
now := time.Now()
for index, suggestion := range suggestions {