Return directories/folders in repository file finder results

Originally from #27514 (closed)

Proposal

When using the file finder (example), return not only the matching file names but also directory/folder names.

Today, in the GitLab project, if you type “views”, you get view specs (file name) and no results for the views directory.

image