Most repositories have a predefined structure. Grouping based on subpaths should be an option say ``` (.+)/[^/]+ -> $1 ``` which means group by subpath ignoring file name.