Jump to status options with their first-letter shortcuts.

o/w/d select OPEN/WIP/DONE in the status menu, with the hotkeys shown inline.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Skruecken
2026-10-19 10:38:28 +02:00
co-authored by Cursor
parent 6527d91b4f
commit aa8f89b43a
4 changed files with 38 additions and 5 deletions
+7
View File
@@ -311,6 +311,13 @@ func (m Model) updateStatus(msg tea.KeyMsg) (tea.Model, tea.Cmd) {
m.statusMenu.MoveUp()
return m, nil
}
// Jump to option by first letter of its label (o/w/d).
if msg.Type == tea.KeyRunes && len(msg.Runes) == 1 {
if m.statusMenu.JumpToShortcut(msg.Runes[0]) {
return m, nil
}
}
return m, nil
}