[PR #5775] feat(tui): add ctrl+r history search #11580

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

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

State: open
Merged: No


Summary

Implements Ctrl+R history search functionality for the TUI prompt, allowing users to fuzzy search through their prompt history.

Image

Changes

  • Added DialogHistorySearch component with fuzzy filtering and deduplication
  • Increased max history entries from 50 to 100
  • Added items getter and reset() method to PromptHistory context
  • Added history_search keybind (default: ctrl+r) to config
  • Integrated history search into prompt component

Closes https://github.com/sst/opencode/issues/5062
Related #6276

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5775 **State:** open **Merged:** No --- ## Summary Implements Ctrl+R history search functionality for the TUI prompt, allowing users to fuzzy search through their prompt history. <img width="2005" height="1227" alt="Image" src="https://github.com/user-attachments/assets/3567d5ab-d388-4137-b20d-3a10bf1fdaa5" /> ## Changes - Added `DialogHistorySearch` component with fuzzy filtering and deduplication - Increased max history entries from 50 to 100 - Added `items` getter and `reset()` method to `PromptHistory` context - Added `history_search` keybind (default: `ctrl+r`) to config - Integrated history search into prompt component Closes https://github.com/sst/opencode/issues/5062 Related #6276
yindo added the pull-request label 2026-02-16 18:16:27 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11580