Summary: | When more than one runner is called, few results are displayed | ||
---|---|---|---|
Product: | [Plasma] krunner | Reporter: | Podagric <kde.podagric> |
Component: | general | Assignee: | Alexander Lohnau <alexander.lohnau> |
Status: | ASSIGNED --- | ||
Severity: | minor | CC: | nate, plasma-bugs |
Priority: | NOR | Keywords: | usability |
Version: | 5.21.0 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Other | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Podagric
2021-02-17 16:10:58 UTC
X = https://github.com/alex1701c/EmojiRunner/issues/4 Sorry, I forgot to put the link before sending 😅 This is a really tricky one.
We are doing some balancing magic in milou/lib/resultsmodel.cpp:161. In the docstrings it is said:
> * Each category may occupy a maximum of 1/(n+1) of the given @c limit,
> * this means the further down you get, the less matches there are.
> * There is at least one match shown per category.
This basically means that if we have multiple categories which rank high but few have matches, the categorizes below with many matches aren't even allowed to display that many of their matches.
In the old SourcesModel we were getting all the matches and the check which ones we want to display. If we exceed the limit we would remove one match or just not add the new one.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/milou/-/merge_requests/44 |