! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Suggestion: sort by app name first
Status:
RESOLVED: FIXED
Severity:
enhancement
Product:
Xfce4-appfinder
Component:
General

Comments

Description Vincent Beers 2013-10-19 13:04:05 CEST
Created attachment 5190 
Typing "syn" to find Synaptic gets me Dropbox first

The Application Finder seems to match any result it can find and displays them alphabetically.

The unfortunate side effect to this is that when a person is obviously looking for something specific, it shows results that are obviously not the most relevant result first. In the attached screenshot, I typed "syn", yet I get Dropbox and Qsynth before I get Synaptic.

Now, the two first results ARE relevant - they contain "sync" and "qsynth" after all. The problem is that it didn't match my intent of just finding the application name.

Not only that, but it decided to display qsynth before Synaptic, even though "syn" was part of the middle of a word (qsynth). A stronger example of this is typing "del" to start Deluge and instead getting Blender as the first result because the description contains the word "moDELing".

This has happened on several occasions, and has occasionally made me start up programs that I didn't expect to show up.


My suggestions to fix this:
1. Search and display results by app name first.

2. Next, display results where any other content _starts with_ the search text.
Ex. Dropbox goes before Qsynth because the description has a word starting with "syn" while Qsynth's description doesn't.

3. Last, display all other matching results.


Good job on Appfinder, by the way. Hope its functionality one day finds its way in the Applications Menu. ;)
Comment 1 Andre Miranda editbugs 2017-10-12 22:02:24 CEST
Created attachment 7360 
WIP patch

The attached patch works well, expect when using the icon view: while typing it doesn't sort, only filters, but sorts when backspacing ¯\_(ツ)_/¯

Bug #10415

Reported by:
Vincent Beers
Reported on: 2013-10-19
Last modified on: 2018-06-20

People

Assignee:
Andre Miranda
CC List:
1 user

Version

Version:
4.12.0

Attachments

Typing "syn" to find Synaptic gets me Dropbox first (58.33 KB, image/png)
2013-10-19 13:04 CEST , Vincent Beers
no flags
WIP patch (8.97 KB, patch)
2017-10-12 22:02 CEST , Andre Miranda
no flags

Additional information