Bug 481965

Summary: Open windows are listed with low priority in krunner/kickoff search results
Product: [Plasma] krunner Reporter: goo
Component: windowsAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: alexander.lohnau, fanzhuyifan, natalie_clarius, nicolas.fella
Priority: NOR Keywords: qt6
Version First Reported In: 6.0.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description goo 2024-02-28 21:27:28 UTC
SUMMARY
***
After upgrading to Plasma 6, searching for open windows results in windows listed after other categories like applications, documents and others. Until plasma 5.27.10 open windows were always showed on top of the list.
***

STEPS TO REPRODUCE
1. Open Krunner
2. type in the name of the title of an open window, or part thereof

OBSERVED RESULT
krunner will show the results pertaining to many categories before the windows category even if the title of the window matches the typed pattern with a higher score.

EXPECTED RESULT
Windows with a title matching the pattern typed in krunner's search form should _always_ be listed on top of other results, no matter if the pattern is a partial match, privileging predictability. This has always been the behavior in Plasma 5 and imho this is how it should work.

As a workaround I now use ALT+W to call "qdbus org.kde.krunner /App querySingleRunner windows """
  
SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 39
KDE Plasma Version: 6.0.0
KDE Frameworks Version:  6.0.0
Qt Version: 6.6.2
Comment 1 fanzhuyifan 2024-02-29 02:31:33 UTC
You can configure your preferred ordering of results in system settings -search-plasma search. Mark the windows plugin as favorite, and drag it to the top.
Comment 2 goo 2024-03-01 00:20:29 UTC
(In reply to fanzhuyifan from comment #1)
> You can configure your preferred ordering of results in system settings
> -search-plasma search. Mark the windows plugin as favorite, and drag it to
> the top.

Thank you, that solved the case. 
Anyhow I believe that Plasma 6 Krunner lacks sane defaults in the way it is showing the results, leaving the user with a confusing list of items.
There is no reason to not  follow the behavior that it had throughout Plasma 5 release cycle, with windows and applications on top of the list by default. Why leave the user that upgraded from Plasma 5 with an inconsistent behavior in respect of what they were used to?