[PR #12307] feat(tui): add Ctrl+R prompt history search #14160

Open
opened 2026-02-16 18:18:58 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/12307

State: open
Merged: No


Issue #5062 requested bash-style reverse-i-search.

What does this PR do?

Adds Ctrl+R history search to the prompt. A dialog opens where you can fuzzy search through prompt history. Ctrl+R cycles matches, Enter selects.

Changes:

  • Added history_search keybind (ctrl+r)
  • Moved session_rename to leader+R to avoid conflict
  • Added search() method using fuzzysort
  • Created DialogHistorySearch component

How did you verify your code works?

Ran bun dev, submitted prompts, tested Ctrl+R search, fuzzy filtering, and selection.

Closes #5062

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/12307 **State:** open **Merged:** No --- Issue #5062 requested bash-style reverse-i-search. ### What does this PR do? Adds Ctrl+R history search to the prompt. A dialog opens where you can fuzzy search through prompt history. Ctrl+R cycles matches, Enter selects. Changes: - Added history_search keybind (ctrl+r) - Moved session_rename to leader+R to avoid conflict - Added search() method using fuzzysort - Created DialogHistorySearch component ### How did you verify your code works? Ran bun dev, submitted prompts, tested Ctrl+R search, fuzzy filtering, and selection. Closes #5062
yindo added the pull-request label 2026-02-16 18:18:58 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14160