Uh oh!
There was an error while loading. Please reload this page.
feat(tui): add ctrl+r history search - #5775
Conversation
6464265 to
fe7be3fCompare- Replace simple select dialog with advanced fuzzy search interface - Add fuzzysort integration for intelligent text matching - Implement keyboard navigation (arrows, page up/down, vi keys) - Add real-time filtering with match highlighting preview - Improve visual design with selection highlighting and theming - Add mouse support for item selection and hover navigation - Add Ctrl+U keyboard shortcut to clear search filter
edlsh
commented
Dec 28, 2025
Hey @jiahaoxiang2000! I implemented an alternative approach in #6276 that uses inline reverse-i-search (bash-style) instead of a modal dialog. Key differences:
This was inspired by @ShpetimA's suggestion in #5062:
Both approaches have merit - the modal provides a visual list which some users might prefer, while inline keeps the shell-like feel. Curious what the maintainers think about which direction fits better for opencode's TUI! |
f1ae801 to
08fa7f7CompareClosing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR. |
Summary
Implements Ctrl+R history search functionality for the TUI prompt, allowing users to fuzzy search through their prompt history.
Changes
DialogHistorySearchcomponent with fuzzy filtering and deduplicationitemsgetter andreset()method toPromptHistorycontexthistory_searchkeybind (default:ctrl+r) to configCloses#5062
Related #6276