fix(ui): remove j/k navigation from fuzzy selectors

Remove 'j' and 'k' keybindings from model, session, and tree selectors
to allow typing those characters for fuzzy filtering. Navigation now
uses only arrow keys (↑/↓) which matches the existing help text.
This commit is contained in:
Ed Zynda
2026-04-01 13:11:44 +03:00
parent 4912449dda
commit 1b93049b8e
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -115,12 +115,12 @@ func (ms *ModelSelectorComponent) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
case tea.KeyPressMsg:
switch {
case key.Matches(msg, key.NewBinding(key.WithKeys("up", "k"))):
case key.Matches(msg, key.NewBinding(key.WithKeys("up"))):
if ms.cursor > 0 {
ms.cursor--
}
case key.Matches(msg, key.NewBinding(key.WithKeys("down", "j"))):
case key.Matches(msg, key.NewBinding(key.WithKeys("down"))):
if ms.cursor < len(ms.filtered)-1 {
ms.cursor++
}
+2 -2
View File
@@ -158,12 +158,12 @@ func (ss *SessionSelectorComponent) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
}
switch {
case key.Matches(msg, key.NewBinding(key.WithKeys("up", "k"))):
case key.Matches(msg, key.NewBinding(key.WithKeys("up"))):
if ss.cursor > 0 {
ss.cursor--
}
case key.Matches(msg, key.NewBinding(key.WithKeys("down", "j"))):
case key.Matches(msg, key.NewBinding(key.WithKeys("down"))):
if ss.cursor < len(ss.filtered)-1 {
ss.cursor++
}
+2 -2
View File
@@ -103,12 +103,12 @@ func (ts *TreeSelectorComponent) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
case tea.KeyPressMsg:
switch {
case key.Matches(msg, key.NewBinding(key.WithKeys("up", "k"))):
case key.Matches(msg, key.NewBinding(key.WithKeys("up"))):
if ts.cursor > 0 {
ts.cursor--
}
case key.Matches(msg, key.NewBinding(key.WithKeys("down", "j"))):
case key.Matches(msg, key.NewBinding(key.WithKeys("down"))):
if ts.cursor < len(ts.flatNodes)-1 {
ts.cursor++
}