Skip to content

ux(tui): reverse search (Ctrl+R) can only advance forward — no select_previous() #4691

@bug-ops

Description

@bug-ops

Description

ReverseSearchState only implements select_next() — pressing Ctrl+R inside the reverse-search overlay always advances to the next (older) match. There is no way to go back to a more recent match without closing and reopening the overlay.

Bash Ctrl+R cycles through matches in both directions, so the current implementation is a UX gap vs shell conventions.

Expected Behavior

Repeated Ctrl+R presses cycle forward (older matches). Ctrl+S or Shift+Ctrl+R moves backward (newer matches), matching bash/zsh behavior.

Actual Behavior

Only select_next() available. Overlay must be closed and reopened to revisit a recently-passed match.

Environment

  • Version: v0.21.3 (HEAD 957211b)
  • File: crates/zeph-tui/src/widgets/reverse_search.rs
  • Key handling: crates/zeph-tui/src/app/keys.rs:1222

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4Long-term / exploratoryenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions