-
Notifications
You must be signed in to change notification settings - Fork 242
feat: add Ctrl+R reverse history search #1630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks for the PR @Mostamhd! |
|
/review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Summary
✅ No bugs found in the added code. The reverse history search implementation looks solid.
Analysis
Reviewed the new FindPrevContains and SetCurrent functions along with the editor integration. The code correctly:
- Handles edge cases (empty history, negative indices, out of bounds)
- Uses proper guards before calling
SetCurrent(checksmatchIdx >= 0) - Has comprehensive test coverage including boundary conditions
- Matches the documented API contract for exclusive upper bound behavior
The implementation is well-tested and handles edge cases appropriately.
39f9496 to
3b1e115
Compare
Signed-off-by: Moustafa Ahmed <mostamhd@proton.me>
3b1e115 to
931d90b
Compare
|
Hey @dgageot , thank you for the review! I have refactored the code and worked on the comments you mentioned. Feel free to let me know if you have any questions or comments. |
closes #1615