Sort search results by relevance
Created by: mardukbp
I searched for
rofi and had to scroll down several pages until I found the package called
rofi. The reason is that pamac returns results that contain the word 'rofi' anywhere in the package description, including the URL. This results in a long list of packages unrelated to
rofi that contain the word 'profile' for example.
My suggestion is that the search results are sorted according to their relevance. First the packages whose name begins with the search string. Then the packages that contain the search string in their name. Lastly, the packages that contain the search string somewhere in the package description.