Skip to content

Frontend for multiple matches in single file

Problem

In Zoekt and basic searches it's possible to see multiple matches for a single file on different lines. In both cases these are presented as different results which can make it less visually clear to the reader that they are looking at the same file.

Solution

We should collapse multiple results from a single file into a single file viewer with multiple highlights contained within it. This maybe will require backend and frontend changes to better represent a file match that has multiple highlighted regions.

image.png

Edited by Ben Venker