Bug 457724 - Add option to not group results by category
Summary: Add option to not group results by category
Status: REPORTED
Alias: None
Product: krunner
Classification: Plasma
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Alexander Lohnau
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-10 16:18 UTC by Natalie Clarius
Modified: 2022-08-11 18:38 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Natalie Clarius 2022-08-10 16:18:07 UTC
I would like to see an option to display results in KRunner (and maybe in general Milou-based searches) not grouped by category, but sorted strictly by relevance, as in the application launcher and application dashboard.   

Grouping results by category may make it easier to identify of what type a result is (though that is also provided the icons), but it also makes the most visible results much less relevant: A very-but-not-the-most relevant result will be outranked by any somewhat-but-only-slightly relevant results that happen to be in the same category as the most relevant search result. 

For example, I often run into the situation that the result I am interested in is a VSCode project (from the VSCode project runner extension), there is a closely matching recent file, in addition several other vaguely related recent files, and the closely matching recent file is considered equally or slightly more relevant than the VSCode project, and wins over it. In this case, the very relevant but not maximally so VSCode project result I am interested in will be buried below lots of rather  not so relevant recent files, simply because they were lucky to be in the same category as the winning search result.

I have found that I find it easier to quickly find what I'm looking for in the search provided by the application launcher, but prefer the standalone popup UI of the KRunner application. I think it would be useful to have an option to combine the benefits of the two UIs.
Comment 1 Alexander Lohnau 2022-08-10 17:09:26 UTC
>but sorted strictly by relevance, as in the application launcher and application dashboard.   

The sorting there is just hardcoded and takes the categories into account too.

>from the VSCode project runner extension

Could you please link to the project? Maybe the sorting can be improved.
Comment 2 Natalie Clarius 2022-08-10 18:00:55 UTC
(In reply to Alexander Lohnau from comment #1)
> >from the VSCode project runner extension
> 
> Could you please link to the project? Maybe the sorting can be improved.

https://github.com/alex1701c/krunner-vscodeprojects, but I don't think it can. That some less relevant results of one category will outrank some more relevant ones of a different category is simply the nature of grouping all results of a category together.
Comment 3 Alexander Lohnau 2022-08-10 19:07:37 UTC
Could you please also add a screenshot of the issue?