-
Notifications
You must be signed in to change notification settings - Fork 21
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
How to search from current line like vim or less ? #257
Comments
i'd like to search the next one by /something, and previous one by ?something like vim |
Just like in less. Fixes #257. As a side effect, this changes the "show help" key from '?' to 'h', since '?' is now used for searching backwards. Also, we used to have 'h' and 'l' for left and right for vim compatibility, but since less compatibility is more important than vim compatibility, they were removed. So this change also unfixes #25.
When searching in the pager, pressing ESC will now skip back to where the search started. This is useful when you want to quickly jump back to where you started searching from. Pressing RETURN will still stop the search and leave the cursor where it is. Being able to press ESC to go back somewhat improves on the first half of #257, related to searching from the current position to the end.
Not exactly.
But if there are no hits below the current location,
With 02a6f11, ESC while searching will take you back to where the search started. RETURN will stop searching but remain in place. Not exactly what you asked for, but if Or since |
if type "/something", will always search from beginning. it's not same like vim or less.
for example, I use moar to view my logs. I'd like to search by date first, and search something from the date, moar will always search from the top, not works like vim.
The text was updated successfully, but these errors were encountered: