Simplify file content result display
Created by: benvenker
Currently, we provide a pretty intense user experience when rendering files that have many matches in them, depending on the user’s set amount of context lines.
Even with context lines set at 2, with 4 matches in a file it feels like a lot for the default.
We’d like to experiment with something similar to what GitHub does with a fixed result size, no matter how many matches are in the file.
After talking with @novoselrok we may be a little limited in what we can do here, or at least constrained in our options by the existing results.
Proposal
Comment from @fkling:
We could also consider to not show contextual lines. If we can make the blob view fast and show it directly next to search results (not as an overlay) then this might be good enough. Alternatively we could add some way to reveal contextual lines before/after. And of course the user could configure to always show a minimal number of contextual lines (just like it is now).