You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we search for a content, we are showing only the matching line of content with line number. I need a customization option to include n lines before and after the actual line in the search result screen.
I have little design sense, but I'm thinking something like the following:
When you do a 0-context search, results would appear as they do now:
But if you specify to show some extra context, we make sure to clarify the non-contiguous sections. (We don't do that for 0-context search, but it's not a problem when every line has a highlight.)
I think up to 3 lines of surrounding context is a good maximum, because we still have to enforce the contextLimit:
But then the "more" view has the unlimited context:
This is all real BTW. Seeing if #2732 ever gets merged.
Activity
vladak commentedon Sep 13, 2017
can you add more details please ?
vladak commentedon Sep 18, 2017
Marking this as enhancement. However, this needs better specification to see what needs to be done. Or a pull request.
senthilkumarsh commentedon Sep 18, 2017
When we search for a content, we are showing only the matching line of content with line number. I need a customization option to include n lines before and after the actual line in the search result screen.
vladak commentedon Oct 2, 2017
All right. This is something which probably needs to be done in
Summarizer
code.[-]Include before and after content from file search[/-][+]provide configurable context for search hits[/+]idodeclare commentedon Mar 22, 2020
I have little design sense, but I'm thinking something like the following:
When you do a 0-context search, results would appear as they do now:
But if you specify to show some extra context, we make sure to clarify the non-contiguous sections. (We don't do that for 0-context search, but it's not a problem when every line has a highlight.)
I think up to 3 lines of surrounding context is a good maximum, because we still have to enforce the
contextLimit
:But then the "more" view has the unlimited context:
This is all real BTW. Seeing if #2732 ever gets merged.