SUMMARY As discussed in X, I am opening this bug report. Some plugins may have a need to display a larger number of results, but this is being very limited for values such as 5 and 7. STEPS TO REPRODUCE 1. Create several things that can be displayed as results in the krunner, such as kate sections, recent files, etc 2. Try to access them through krunner 3. The result displayed may be much smaller than expected if multiple runners are called at the same time SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.21.0 KDE Frameworks Version: 5.79.0 Qt Version: 5.15.2 Kernel Version: 5.11.0-arch1-1 Graphics Platform: X11
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