-
Notifications
You must be signed in to change notification settings - Fork 114
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
Q: Show context #127
Comments
I guess? It needs a bit of refactoring, because you have to coalesce the context lines for multiple consecutive matches. |
I think you are asking if context lines are supported out of the box. The answer is: no. |
Thanks @hanwen ! Cheers, |
So this change tlamr@65f2bb4 Would you @hanwen be willing to accept a patch that adds this as a parameter or would you prefer some more polished solution? Thanks, |
no. This breaks the API contract: the segment you're returning contains a '\n'. I think it would also do the wrong thing if you have two matches on consecutive lines: you'd get some lines returned twice. |
ok, thanks! Cheers, |
Hi guys,
is it possible to show search term context in browser?
e.g. 3 lines before and 3 lines after match.
Thanks a lot!
The text was updated successfully, but these errors were encountered: