Add file type icon to file in code search results of Global Search
Problem to solve
I'm often searching and finding code and want to know what language the file is written in. When I review code in an MR, I see a file type (ruby, etc.) icon which indicates which language the file is written in. This would be a small feature but could be a nice addition to help folks find the code they are looking for faster in Global Search.
In &6853 (closed) we are adding support for the Language facet in Advanced Search. Adding the file type icon to results will aid as an affordance to users as to what language each result is.
Current Screenshots
Example of Global Search code results.
Global Search (generic icon for files)
MR – diff (Update: This has actually been removed in !87289 (merged))
File directory table (Project overview & Repository pages)
Proposal
- Add the file type icon associated with the language in replacement of the generic file icon we use today in results.
- Include a tooltip that indicates the language name
Edited by Nick Brandt